diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-26 21:42:02 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-26 21:51:04 +0200 |
| commit | a3d4dfb4357a265d4c3a4bfafe7d17a8ecc72f66 (patch) | |
| tree | 3c854df3818b6a7f8a14f12f84f3d02e5a1a6196 | |
| parent | 753b75171d1eb3f9e4fc7c2d12fd5b8de5669331 (diff) | |
Prefer %userprofile% to %homedrive% and %homepath% for home directory location on Windows.
For some strange reason on my laptop %HOMEDRIVE% comes up as z:\
whereas %userprofile% makes more sense.
| -rw-r--r-- | src/lib/cross_windows.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc index 486e9b5d5..723828d7e 100644 --- a/src/lib/cross_windows.cc +++ b/src/lib/cross_windows.cc @@ -394,7 +394,7 @@ maybe_open_console () boost::filesystem::path home_directory () { - return boost::filesystem::path(getenv("HOMEDRIVE")) / boost::filesystem::path(getenv("HOMEPATH")); + return boost::filesystem::path(getenv("userprofile")); } |
