summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/events.c b/src/events.c
index e6cf0ac..76c3e64 100644
--- a/src/events.c
+++ b/src/events.c
@@ -110,15 +110,14 @@ void init_buttonbindings(void)
feh_set_bb(&buttons.rotate, 4, 2);
home = getenv("HOME");
- if (!home)
- eprintf("No HOME in environment");
-
confhome = getenv("XDG_CONFIG_HOME");
if (confhome)
confpath = estrjoin("/", confhome, "feh/buttons", NULL);
- else
+ else if (home)
confpath = estrjoin("/", home, ".config/feh/buttons", NULL);
+ else
+ return;
conf = fopen(confpath, "r");