summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-01 13:01:24 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-01 13:01:24 +0200
commit1acaa6acec9ef8736fd55b26d84e21d6088746d9 (patch)
tree0bb3d60030359ef877b8346734cae313b3322c5e /src
parentefd89fbbe4e20f42fa06a4aa7995befb12d38838 (diff)
Do not require X for options which don't use it
This makes the tests also work on systems which don't run X.
Diffstat (limited to 'src')
-rw-r--r--src/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 1f3ec76..3cc4bd9 100644
--- a/src/options.c
+++ b/src/options.c
@@ -451,6 +451,7 @@ static void feh_parse_option_array(int argc, char **argv)
break;
case 'L':
opt.customlist = estrdup(optarg);
+ opt.display = 0;
break;
case 'M':
free(opt.menu_font);
@@ -503,9 +504,11 @@ static void feh_parse_option_array(int argc, char **argv)
break;
case 'U':
opt.loadables = 1;
+ opt.display = 0;
break;
case 'u':
opt.unloadables = 1;
+ opt.display = 0;
break;
case 'p':
opt.preload = 1;