forked from I2P_Developers/i2p.i2p
only declare one string for determining appdata, use old roaming appdata if it is present.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2019-11-06 idk
|
||||||
|
* Router:
|
||||||
|
- Use Local Application Data(%LOCALAPPDATA%) instead of Roaming for config
|
||||||
|
|
||||||
2019-11-02 zzz
|
2019-11-02 zzz
|
||||||
* Router: NSR/ES fixes for proposal 144
|
* Router: NSR/ES fixes for proposal 144
|
||||||
|
|
||||||
|
@ -86,9 +86,9 @@ public class WorkingDir {
|
|||||||
// Don't mess with existing Roaming Application Data installs,
|
// Don't mess with existing Roaming Application Data installs,
|
||||||
// in case somebody is using roaming appdata for a reason
|
// in case somebody is using roaming appdata for a reason
|
||||||
// already. In new installs, use local appdata by default. -idk
|
// already. In new installs, use local appdata by default. -idk
|
||||||
String oldappdata = System.getenv("APPDATA");
|
appdata = System.getenv("APPDATA");
|
||||||
if (oldappdata != null) {
|
if (appdata != null) {
|
||||||
File checkOld = new File(oldappdata, WORKING_DIR_DEFAULT_WINDOWS);
|
File checkOld = new File(appdata, WORKING_DIR_DEFAULT_WINDOWS);
|
||||||
if (checkOld.exists() && checkOld.isDirectory())
|
if (checkOld.exists() && checkOld.isDirectory())
|
||||||
home = appdata;
|
home = appdata;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user