summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-19 18:33:09 +0200
committerhut <hut@lavabit.com>2010-04-19 18:33:09 +0200
commit09449df07fb9b81ccab2171d9f65091dbbd472ff (patch)
treee2d63fdf6f294253a263f562c005fece27f274a3
parent172847d98175d3c31a5fd8c428ed81049711b655 (diff)
downloadranger-09449df07fb9b81ccab2171d9f65091dbbd472ff.tar.gz
defaults.apps: added fceux
-rw-r--r--ranger/defaults/apps.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 62dbb68c..7e9fe385 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -68,6 +68,8 @@ class CustomApplications(Applications):
 				return self.either(c, 'firefox', 'opera')
 			if f.extension in ('swf', ):
 				return self.either(c, 'firefox', 'opera', 'elinks')
+			if f.extension == 'nes':
+				return self.app_fceux(c)
 			if f.extension in ('swc', 'smc'):
 				return self.app_zsnes(c)
 
@@ -181,6 +183,10 @@ class CustomApplications(Applications):
 			return tup('aunpack', '-l', c.file.path)
 		return tup('aunpack', c.file.path)
 
+	@depends_on('fceux')
+	def app_fceux(self, c):
+		return tup('fceux', *c)
+
 	@depends_on('apvlv')
 	def app_apvlv(self, c):
 		c.flags += 'd'