aboutsummaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index f294db3..8aea835 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -224,8 +224,11 @@ struct Options {
224 if (env && strlen(env) > 0) { 224 if (env && strlen(env) > 0) {
225 session_display.assign(env); 225 session_display.assign(env);
226 } 226 }
227 227#ifdef _WIN32
228 env = getenv("USERPROFILE");
229#else
228 env = getenv("HOME"); 230 env = getenv("HOME");
231#endif
229 if (env && strlen(env) > 0) { 232 if (env && strlen(env) > 0) {
230 rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox")); 233 rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox"));
231 rc_file = rc_path + "/init"; 234 rc_file = rc_path + "/init";