about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-09 05:36:00 +0200
committerhut <hut@lavabit.com>2011-10-09 05:59:32 +0200
commit3ebceedb38e49f5bbf87a1ec71b1fe15bac55341 (patch)
tree8ce66c72e0aa2d58824eedc0187217cf53bef21d
parentd288ec979e7e5e6949066e72cbbbcd6e6509065a (diff)
downloadranger-3ebceedb38e49f5bbf87a1ec71b1fe15bac55341.tar.gz
defaults.apps: updated
-rw-r--r--ranger/defaults/apps.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 802dca91..a5618482 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -27,8 +27,9 @@ class CustomApplications(Applications):
 		"""How to determine the default application?"""
 		f = c.file
 
-		if f.basename.lower() == 'makefile':
-			return self.either(c, 'make')
+		if f.basename.lower() == 'makefile' and c.mode == 1:
+			made = self.either(c, 'make')
+			if made: return made
 
 		if f.extension is not None:
 			if f.extension in ('pdf', ):
@@ -44,7 +45,7 @@ class CustomApplications(Applications):
 				return self.either(c, 'firefox', 'opera', 'jumanji', 'luakit')
 			if f.extension == 'nes':
 				return self.either(c, 'fceux')
-			if f.extension in ('swc', 'smc'):
+			if f.extension in ('swc', 'smc', 'sfc'):
 				return self.either(c, 'zsnes')
 			if f.extension in ('odt', 'ods', 'odp', 'odf', 'odg',
 					'doc', 'xls'):