diff options
author | David Barnett <davidbarnett2@gmail.com> | 2010-05-19 23:30:40 -0400 |
---|---|---|
committer | David Barnett <davidbarnett2@gmail.com> | 2010-05-19 23:30:40 -0400 |
commit | 0dc5726741078aae0a41ef158ef5f5cef4b10a14 (patch) | |
tree | 7c1eb79c836149ad5e8f6adc4f22945db0157ded | |
parent | d012468d69a53fe582b3a45f18a6aedb304defb3 (diff) | |
download | ranger-0dc5726741078aae0a41ef158ef5f5cef4b10a14.tar.gz |
Add file-roller as a default app for container types
-rw-r--r-- | ranger/defaults/apps.py | 7 |
1 files changed, 6 insertions, 1 deletions
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: |