diff options
author | Daniel Bainton <dpb@driftaway.org> | 2008-12-12 14:51:27 +0200 |
---|---|---|
committer | Daniel Bainton <dpb@driftaway.org> | 2008-12-12 14:51:27 +0200 |
commit | b861cf4820aa559b12eb2bffa1bd7d67df0bdfcf (patch) | |
tree | 32b7ff3ec2fe2d3f14f626cb75918cd777a38120 | |
parent | 47496af2e01c881dbaea84bebd1c48ea5dc1da3c (diff) | |
download | pentadactyl-b861cf4820aa559b12eb2bffa1bd7d67df0bdfcf.tar.gz |
Project specific _HOME should override LIBERATOR_HOME, so changing order for them
-rw-r--r-- | common/content/io.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/content/io.js b/common/content/io.js index 998846b4..493c5d7f 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -410,18 +410,18 @@ function IO() //{{{ path = path.replace("/", "\\", "g"); /* expand "~" to - * LIBERATOR_HOME or * (VIMPERATOR|MUTTATOR)_HOME or (depending on config.name) + * LIBERATOR_HOME or * HOME (USERPROFILE or HOMEDRIVE\HOMEPATH on Windows if HOME is not set) * in that order */ if (/^~/.test(path)) { - // First try LIBERATOR_HOME - let home = environmentService.get("LIBERATOR_HOME"); + // First try (VIMPERATOR|MUTTATOR)_HOME + let home = environmentService.get(config.name.toUpperCase() + "_HOME"); - // If no LIBERATOR_HOME, then try (VIMPERATOR|MUTTATOR)_HOME + // If no (VIMPERATOR|MUTTATOR)_HOME, then try LIBERATOR_HOME if (!home) - home = environmentService.get(config.name.toUpperCase() + "_HOME"); + home = environmentService.get("LIBERATOR_HOME"); // If no (VIMPERATOR|MUTTATOR)_HOME, try HOME if (!home) |