We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3443db2 commit f0b0f9eCopy full SHA for f0b0f9e
app/src/main/java/org/jd/gui/service/configuration/ConfigurationXmlPersisterProvider.java
@@ -28,6 +28,15 @@ public class ConfigurationXmlPersisterProvider implements ConfigurationPersister
28
protected static final File FILE = getConfigFile();
29
30
protected static File getConfigFile() {
31
+ String configFilePath = System.getProperty(Constants.CONFIG_FILENAME);
32
+
33
+ if (configFilePath != null) {
34
+ File configFile = new File(configFilePath);
35
+ if (configFile.exists()) {
36
+ return configFile;
37
+ }
38
39
40
if (PlatformService.getInstance().isLinux()) {
41
// See: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
42
String xdgConfigHome = System.getenv("XDG_CONFIG_HOME");
0 commit comments