From 0dc5726741078aae0a41ef158ef5f5cef4b10a14 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Wed, 19 May 2010 23:30:40 -0400 Subject: Add file-roller as a default app for container types --- ranger/defaults/apps.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 44e209a1..762bdc6e 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -77,7 +77,7 @@ class CustomApplications(Applications): return self.either(c, 'edit_or_run') if f.container: - return self.either(c, 'aunpack') + return self.either(c, 'aunpack', 'file_roller') if f.video or f.audio: if f.video: @@ -164,6 +164,11 @@ class CustomApplications(Applications): return tup('aunpack', '-l', c.file.path) return tup('aunpack', c.file.path) + @depends_on('file-roller') + def app_file_roller(self, c): + c.flags += 'd' + return tup('file-roller', c.file.path) + @depends_on('make') def app_make(self, c): if c.mode is 0: -- cgit 1.4.1-2-gfad0