[kupfer] fileactions: Add support for .xz files and others more obscure



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]