aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index c47e1d8..eaa732d 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -220,12 +220,12 @@ struct Options {
220 const char* env; 220 const char* env;
221 221
222 env = getenv("DISPLAY"); 222 env = getenv("DISPLAY");
223 if (env) { 223 if (env && strlen(env) > 0) {
224 session_display.assign(env); 224 session_display.assign(env);
225 } 225 }
226 226
227 env = getenv("HOME"); 227 env = getenv("HOME");
228 if (env) { 228 if (env && strlen(env) > 0) {
229 rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox")); 229 rc_path.assign(std::string(env) + "/." + realProgramName("fluxbox"));
230 rc_file = rc_path + "/init"; 230 rc_file = rc_path + "/init";
231 } 231 }