Skip to content

Commit

Permalink
Pull request #194: add -Djd-gui.cfg=path/to.jd-gui.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Nov 17, 2019
1 parent 3443db2 commit f0b0f9e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ public class ConfigurationXmlPersisterProvider implements ConfigurationPersister
protected static final File FILE = getConfigFile();

protected static File getConfigFile() {
String configFilePath = System.getProperty(Constants.CONFIG_FILENAME);

if (configFilePath != null) {
File configFile = new File(configFilePath);
if (configFile.exists()) {
return configFile;
}
}

if (PlatformService.getInstance().isLinux()) {
// See: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
String xdgConfigHome = System.getenv("XDG_CONFIG_HOME");
Expand Down

0 comments on commit f0b0f9e

Please sign in to comment.