diff --git a/src/com/willwinder/universalgcodesender/utils/SettingsFactory.java b/src/com/willwinder/universalgcodesender/utils/SettingsFactory.java index db301025d5..62fad355bc 100644 --- a/src/com/willwinder/universalgcodesender/utils/SettingsFactory.java +++ b/src/com/willwinder/universalgcodesender/utils/SettingsFactory.java @@ -62,24 +62,12 @@ else if (System.getProperty("os.name").toLowerCase().contains("windows")) { else { properties = new File(homeDir + propertiesFilename); - // Check homedir hidden/not hidden + // Check homedir for hidden / not hidden files json = new File(homeDir + "/" + jsonFilename); if (!json.exists()) { + // Default to hidden if none. json = new File(homeDir + "/." + jsonFilename); } - // Check /etc - if (!json.exists()) { - json = new File("/etc/" + jsonFilename); - } - // Check /usr/share - if (!json.exists()) { - json = new File("/usr/share/UniversalGcodeSender/" + jsonFilename); - } - - // No file. - if (!json.exists()) { - json = new File(homeDir + "/" + jsonFilename); - } } return properties.exists() ? properties : json;