[kupfer: 15/67] fileactions: Use spawn_async_notify_as



commit 23d2736b3b834ff3bdba5cb926f9f50e8c8d8cc3
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Mar 15 22:52:28 2011 +0100

    fileactions: Use spawn_async_notify_as

 kupfer/plugin/fileactions.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/fileactions.py b/kupfer/plugin/fileactions.py
index db8a3db..17fd9e3 100644
--- a/kupfer/plugin/fileactions.py
+++ b/kupfer/plugin/fileactions.py
@@ -266,7 +266,7 @@ class CreateArchive (Action):
 	def _make_archive(cls, filepaths):
 		cmd = ["file-roller", "--add"]
 		cmd.extend(filepaths)
-		utils.spawn_async(cmd)
+		utils.spawn_async_notify_as("file-roller.desktop", cmd)
 
 	def activate(self, leaf):
 		self._make_archive((leaf.object, ))
@@ -290,7 +290,7 @@ class CreateArchiveIn (Action):
 		cmd = ["file-roller", "--add-to=%s" % (archive_path, )]
 		cmd.extend(filepaths)
 		runtimehelper.register_async_file_result(archive_path)
-		utils.spawn_async(cmd)
+		utils.spawn_async_notify_as("file-roller.desktop", cmd)
 		return archive_path
 
 	def activate(self, leaf, iobj):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]