From 9341b0d68e0a87e8187fbfa3d6c85cf10f2fe2d1 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 14 Mar 2010 19:31:26 +0100 Subject: apps: added seperate entry for GIMP --- ranger/defaults/apps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 5cd39083..7e522df9 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -146,7 +146,7 @@ class CustomApplications(Applications): if c.mode in arg: return tup('feh', arg[c.mode], c.file.path) if c.mode is 4: - return tup('gimp', *c) + return self.app_gimp(c) if len(c.files) > 1: return tup('feh', *c) @@ -160,6 +160,10 @@ class CustomApplications(Applications): return tup('feh', *deq) + @depends_on("gimp") + def app_gimp(self, c): + return tup('gimp', *c) + @depends_on('aunpack') def app_aunpack(self, c): if c.mode is 0: -- cgit 1.4.1-2-gfad0