diff options
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main.cc b/src/main.cc index 0639e30..435e9f4 100644 --- a/src/main.cc +++ b/src/main.cc | |||
@@ -239,13 +239,10 @@ struct Options { | |||
239 | if (env && strlen(env) > 0) { | 239 | if (env && strlen(env) > 0) { |
240 | session_display.assign(env); | 240 | session_display.assign(env); |
241 | } | 241 | } |
242 | #ifdef _WIN32 | 242 | |
243 | env = getenv("USERPROFILE"); | 243 | rc_path = FbTk::StringUtil::expandFilename(std::string("~/.") + realProgramName("fluxbox")); |
244 | #else | 244 | |
245 | env = getenv("HOME"); | 245 | if (!rc_path.empty()) { |
246 | #endif | ||
247 | if (env && strlen(env) > 0) { | ||
248 | rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox")); | ||
249 | rc_file = rc_path + "/init"; | 246 | rc_file = rc_path + "/init"; |
250 | } | 247 | } |
251 | } | 248 | } |