[#SPARK-743] Changes in the user.home directory

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@11096 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Michael Will
2009-07-03 06:20:53 +00:00
committed by michael.will
parent eaab009e4b
commit 443c626a64

View File

@ -40,7 +40,9 @@ import de.javasoft.plaf.synthetica.SyntheticaLookAndFeel;
*/
public final class Spark {
private static final String USER_SPARK_HOME = System.getProperties().getProperty("user.home") + "/" + getUserConf();
private static final String USER_SPARK_HOME = System.getenv("APPDATA") != null && !System.getenv("APPDATA").equals("")
? System.getenv("APPDATA") + "/" + getUserConf()
: System.getProperties().getProperty("user.home") + "/" + getUserConf();
public static String ARGUMENTS;