diff options
-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' |