cold-start HOME is user.home, in accordance with Cygwin-Terminal.bat;
authorwenzelm
Tue, 24 Apr 2012 15:23:12 +0200
changeset 47725 447b635bcea5
parent 47724 bafe6c0cbab4
child 47726 d5e7f7039e03
cold-start HOME is user.home, in accordance with Cygwin-Terminal.bat;
src/Pure/System/isabelle_system.scala
--- a/src/Pure/System/isabelle_system.scala	Tue Apr 24 15:07:49 2012 +0200
+++ b/src/Pure/System/isabelle_system.scala	Tue Apr 24 15:23:12 2012 +0200
@@ -50,9 +50,14 @@
       val standard_system = new Standard_System
       val settings =
       {
-        val env = Map(System.getenv.toList: _*) +
+        val env0 = Map(System.getenv.toList: _*) +
           ("ISABELLE_JDK_HOME" -> standard_system.this_jdk_home())
 
+        val user_home = System.getProperty("user.home")
+        val env =
+          if (user_home == null || env0.isDefinedAt("HOME")) env0
+          else env0 + ("HOME" -> user_home)
+
         val isabelle_home =
           if (this_isabelle_home != null) this_isabelle_home
           else