diff --git a/src/itdelatrisu/opsu/Options.java b/src/itdelatrisu/opsu/Options.java index 40d5bc3e..434bc9a6 100644 --- a/src/itdelatrisu/opsu/Options.java +++ b/src/itdelatrisu/opsu/Options.java @@ -56,7 +56,7 @@ import org.newdawn.slick.util.ResourceLoader; */ public class Options { /** Whether to use XDG directories. */ - private static final boolean USE_XDG = checkXDGFlag(); + public static final boolean USE_XDG = checkXDGFlag(); /** The config directory. */ private static final File CONFIG_DIR = getXDGBaseDir("XDG_CONFIG_HOME", ".config"); diff --git a/src/itdelatrisu/opsu/downloads/Updater.java b/src/itdelatrisu/opsu/downloads/Updater.java index 8b7166e9..25adb7a3 100644 --- a/src/itdelatrisu/opsu/downloads/Updater.java +++ b/src/itdelatrisu/opsu/downloads/Updater.java @@ -196,7 +196,7 @@ public class Updater { * Checks the program version against the version file on the update server. */ public void checkForUpdates() throws IOException { - if (status != Status.INITIAL || System.getProperty("XDG") != null) + if (status != Status.INITIAL || Options.USE_XDG) return; status = Status.CHECKING;