diff options
author | hut <hut@lavabit.com> | 2010-04-19 00:39:11 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-19 00:39:11 +0200 |
commit | f61767b148f274a06e6a14644978904548a4abda (patch) | |
tree | a8865531f20cc710da35096d36bfd01ca2805adf /ranger | |
parent | 13c70addb0a571b16ad2351b8a833283c70a1d39 (diff) | |
download | ranger-f61767b148f274a06e6a14644978904548a4abda.tar.gz |
defaults.apps: run ff/opera detached, dont open swf in elinks
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/defaults/apps.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index cc0fbec6..62dbb68c 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -64,7 +64,9 @@ class CustomApplications(Applications): return self.either(c, 'evince', 'zathura', 'apvlv') if f.extension in ('xml', ): return self.app_editor(c) - if f.extension in ('html', 'htm', 'xhtml', 'swf'): + if f.extension in ('html', 'htm', 'xhtml'): + return self.either(c, 'firefox', 'opera') + if f.extension in ('swf', ): return self.either(c, 'firefox', 'opera', 'elinks') if f.extension in ('swc', 'smc'): return self.app_zsnes(c) @@ -200,10 +202,12 @@ class CustomApplications(Applications): @depends_on('opera') def app_opera(self, c): + c.flags += 'd' return tup('opera', *c) @depends_on('firefox') def app_firefox(self, c): + c.flags += 'd' return tup("firefox", *c) @depends_on('javac') |