summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-08 19:09:42 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-08 19:09:42 +0100
commit63681d6aedac480b61ea71e8a99c3f41b0f60267 (patch)
tree4e58b8fe9dcb212a03cc647ebee3d131adde6a4c /src/main.c
parent13e4ff850a4e8ff2dbe489e63763f9bd83c47e04 (diff)
make feh --list work without X.
feh -O should also be able to run without it, but that requires slightly more work. I'll fix that one later, I guess. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=373209>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 745fdf9..673a00a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -44,7 +44,8 @@ main(int argc, char **argv)
init_parse_options(argc, argv);
- init_x_and_imlib();
+ if (!opt.list)
+ init_x_and_imlib();
feh_event_init();