about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-03-08 03:44:14 +0000
committerhut <hut@lavabit.com>2011-04-03 16:31:09 +0200
commit9755f3b036e154d7b6f1efff9f83a7043859a398 (patch)
treedcc74c9cf2f7c73b34fcfc1aeac3cd8e49853fef /ranger
parent4343c2f00ca9d86be8579d403c4bc12dcd60b96d (diff)
downloadranger-9755f3b036e154d7b6f1efff9f83a7043859a398.tar.gz
extended apps.py
Patch taken from:
https://bbs.archlinux.org/viewtopic.php?pid=900213#p900213
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/apps.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 7926bbba..ffa828c0 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -65,8 +65,9 @@ class CustomApplications(Applications):
 
 		if f.extension is not None:
 			if f.extension in ('pdf', ):
-				c.flags += 'd'
 				return self.either(c, 'evince', 'zathura', 'apvlv')
+			if f.extension == 'djvu':
+				return self.either(c, 'evince')
 			if f.extension in ('xml', ):
 				return self.either(c, 'editor')
 			if f.extension in ('html', 'htm', 'xhtml'):