summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-08 03:31:29 +0200
committerhut <hut@lavabit.com>2011-10-08 03:31:29 +0200
commit2776bea0dddf35b9bf514c538258021035efefe3 (patch)
tree2a17f897e8deb2d44d9d6335a1628299536d1487 /ranger
parentd1de64a83ece14c62f4222bb53e730fce05b8457 (diff)
downloadranger-2776bea0dddf35b9bf514c538258021035efefe3.tar.gz
defaults/apps: Added mplayer2
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/apps.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 63d53b79..f889387d 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -93,7 +93,8 @@ class CustomApplications(Applications):
 		if f.video or f.audio:
 			if f.video:
 				c.flags += 'd'
-			return self.either(c, 'mplayer', 'smplayer', 'vlc', 'totem')
+			return self.either(c, 'mplayer2', 'mplayer', 'smplayer', 'vlc',
+					'totem')
 
 		if f.image:
 			if c.mode in (11, 12, 13, 14):
@@ -149,6 +150,12 @@ class CustomApplications(Applications):
 		else:
 			return 'mplayer', c
 
+	@depends_on('mplayer2')
+	def app_mplayer2(self, c):
+		args = list(self.app_mplayer(c))
+		args[0] += '2'
+		return args
+
 	@depends_on('feh')
 	def app_set_bg_with_feh(self, c):
 		c.flags += 'd'