diff options
author | hut <hut@lavabit.com> | 2011-10-08 03:31:29 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-08 03:31:29 +0200 |
commit | 2776bea0dddf35b9bf514c538258021035efefe3 (patch) | |
tree | 2a17f897e8deb2d44d9d6335a1628299536d1487 /ranger | |
parent | d1de64a83ece14c62f4222bb53e730fce05b8457 (diff) | |
download | ranger-2776bea0dddf35b9bf514c538258021035efefe3.tar.gz |
defaults/apps: Added mplayer2
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/defaults/apps.py | 9 |
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' |