X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2FInstance.java;h=fdd73b8d12cd306bd8727cf9fbbae153363139a3;hb=b2612f9dcd0a37f4ec22fcabe55390280e06daf2;hp=aacf0c50860064a0f980077ad641ab36aa5d837d;hpb=68e370a441d8e6b10bfaa904ecacb29e7d6160d8;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/Instance.java b/src/be/nikiroo/fanfix/Instance.java index aacf0c5..fdd73b8 100644 --- a/src/be/nikiroo/fanfix/Instance.java +++ b/src/be/nikiroo/fanfix/Instance.java @@ -30,11 +30,15 @@ public class Instance { // Most of the rest is dependent upon this: config = new ConfigBundle(); - String configDir = System.getenv("CONFIG_DIR"); + String configDir = System.getProperty("CONFIG_DIR"); + if (configDir == null) { + configDir = System.getenv("CONFIG_DIR"); + } if (configDir == null) { configDir = new File(System.getProperty("user.home"), ".fanfix") .getPath(); } + if (configDir != null) { if (!new File(configDir).exists()) { new File(configDir).mkdirs(); @@ -145,7 +149,7 @@ public class Instance { /** * Get the (unique) {link StringIdBundle} for the program. - * + * * @return the {link StringIdBundle} */ public static StringIdBundle getTrans() {