summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-09-23 10:58:48 +0200
committerhut <hut@lavabit.com>2010-09-23 10:58:48 +0200
commit44a31d6cbaa1031f4a9cef1e2b7778733082bd3d (patch)
treec1edc0178ebeec3a5067552c0be7f785dd5fe8f9
parent6eb852241bb060f0cbef1f3cac261f4eb544d046 (diff)
downloadranger-44a31d6cbaa1031f4a9cef1e2b7778733082bd3d.tar.gz
defaults.apps: Use mimeopen if installed and apps.py fails
-rw-r--r--ranger/defaults/apps.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 061d2e0b..33c3131c 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -90,6 +90,10 @@ class CustomApplications(Applications):
 		if f.document or f.filetype.startswith('text'):
 			return self.either(c, 'editor')
 
+		# You can put this at the top of the function and mimeopen will
+		# always be used for every file.
+		self.either(c, 'mimeopen')
+
 
 	# ----------------------------------------- application definitions
 	# Note: Trivial applications are defined at the bottom