|
|
|
@ -96,4 +96,22 @@ class FS_Win32 extends FS {
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected File userHomeImpl() { |
|
|
|
|
String home = SystemReader.getInstance().getenv("HOME"); |
|
|
|
|
if (home != null) |
|
|
|
|
return resolve(null, home); |
|
|
|
|
String homeDrive = SystemReader.getInstance().getenv("HOMEDRIVE"); |
|
|
|
|
if (homeDrive != null) { |
|
|
|
|
String homePath = SystemReader.getInstance().getenv("HOMEPATH"); |
|
|
|
|
return new File(homeDrive, homePath); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String homeShare = SystemReader.getInstance().getenv("HOMESHARE"); |
|
|
|
|
if (homeShare != null) |
|
|
|
|
return new File(homeShare); |
|
|
|
|
|
|
|
|
|
return super.userHomeImpl(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|