We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfdf69 commit f8b3367Copy full SHA for f8b3367
modules/cli/src/main/scala/scala/cli/ScalaCli.scala
@@ -20,6 +20,12 @@ import scala.util.Properties
20
21
object ScalaCli {
22
23
+ // TODO: Remove this part once fix is released in os-lib (Issue #2585)
24
+ if (scala.util.Try(os.Path(System.getProperty("user.home"))).isFailure) {
25
+ System.err.println("Warning: user.home property is not set, setting it to user.dir")
26
+ System.setProperty("user.home", System.getProperty("user.dir"))
27
+ }
28
+
29
if (Properties.isWin && isGraalvmNativeImage)
30
// have to be initialized before running (new Argv0).get because Argv0SubstWindows uses csjniutils library
31
// The DLL loaded by LoadWindowsLibrary is statically linke/d in
0 commit comments