[kupfer] fileactions: Add support for .xz files and others more obscure
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] fileactions: Add support for .xz files and others more obscure
- Date: Tue, 22 Mar 2011 23:47:15 +0000 (UTC)
commit 634ab5152a5e4b699e3d64a5d000d33351f468ee
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Mar 23 00:45:21 2011 +0100
fileactions: Add support for .xz files and others more obscure
kupfer/plugin/fileactions.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/fileactions.py b/kupfer/plugin/fileactions.py
index abf2982..acf0a9f 100644
--- a/kupfer/plugin/fileactions.py
+++ b/kupfer/plugin/fileactions.py
@@ -37,6 +37,8 @@ __kupfer_settings__ = plugin_support.PluginSettings(
".rar",
".tar",
".tar.gz",
+ ".tar.bz2",
+ ".tar.xz",
".zip",
)
},
@@ -220,8 +222,11 @@ class CopyTo (Action, pretty.OutputMixin):
class UnpackHere (Action):
def __init__(self):
Action.__init__(self, _("Extract Here"))
- self.extensions_set = set((".rar", ".7z", ".zip", ".gz", ".tgz",
- ".tar", ".lzma", ".bz2"))
+ self.extensions_set = set((
+ ".rar", ".7z", ".zip", ".gz", ".tgz", ".tar", ".lzma", ".bz2",
+ ".tbz2", ".tzo", ".lzo", ".xz", ".ar", ".cbz", ".Z", ".taz",
+ ".lz", ".bz", ".tbz", ".lzh",
+ ))
def activate(self, leaf):
utils.spawn_async_notify_as("file-roller.desktop",
["file-roller", "--extract-here", leaf.object])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]