summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 97acb3e..83fc358 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -157,15 +157,14 @@ void init_keyevents(void) {
feh_set_kb(&keys.toggle_keep_vp, 0, XK_k, 0, 0, 0, 0);
home = getenv("HOME");
- if (!home)
- eprintf("No HOME in environment");
-
confhome = getenv("XDG_CONFIG_HOME");
if (confhome)
confpath = estrjoin("/", confhome, "feh/keys", NULL);
- else
+ else if (home)
confpath = estrjoin("/", home, ".config/feh/keys", NULL);
+ else
+ return;
conf = fopen(confpath, "r");