From 44a31d6cbaa1031f4a9cef1e2b7778733082bd3d Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 23 Sep 2010 10:58:48 +0200 Subject: defaults.apps: Use mimeopen if installed and apps.py fails --- ranger/defaults/apps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 061d2e0b..33c3131c 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -90,6 +90,10 @@ class CustomApplications(Applications): if f.document or f.filetype.startswith('text'): return self.either(c, 'editor') + # You can put this at the top of the function and mimeopen will + # always be used for every file. + self.either(c, 'mimeopen') + # ----------------------------------------- application definitions # Note: Trivial applications are defined at the bottom -- cgit 1.4.1-2-gfad0