From 1acaa6acec9ef8736fd55b26d84e21d6088746d9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 1 Jun 2010 13:01:24 +0200 Subject: Do not require X for options which don't use it This makes the tests also work on systems which don't run X. --- src/options.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3