? ZombiePatch.diff
Index: deskbar/handlers/beagle-live.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/beagle-live.py,v
retrieving revision 1.10
diff -u -r1.10 beagle-live.py
--- deskbar/handlers/beagle-live.py	24 Oct 2005 19:56:51 -0000	1.10
+++ deskbar/handlers/beagle-live.py	30 Oct 2005 17:30:54 -0000
@@ -1,5 +1,5 @@
 import os, sys, cgi
-import gtk, gnome.ui, gnomevfs
+import gobject,gtk, gnome.ui, gnomevfs
 import deskbar, deskbar.handler, deskbar.beagle, deskbar.handler_utils
 from gettext import gettext as _
 from os.path import exists
@@ -137,7 +137,7 @@
 			args.append (self.__result["uri"])
 
 		print "BeagleLive spawning:", action, args
-		os.spawnvp(os.P_NOWAIT, action, args)
+		gobject.spawn_async(args, flags=gobject.SPAWN_SEARCH_PATH)
 		
 class BeagleLiveHandler(deskbar.handler.SignallingHandler):
 	def __init__(self):
Index: deskbar/handlers/beagle.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/beagle.py,v
retrieving revision 1.5
diff -u -r1.5 beagle.py
--- deskbar/handlers/beagle.py	20 Oct 2005 21:39:07 -0000	1.5
+++ deskbar/handlers/beagle.py	30 Oct 2005 17:30:54 -0000
@@ -2,6 +2,7 @@
 from os.path import exists
 from gettext import gettext as _
 
+import gobject
 import deskbar.handler, deskbar.handler_utils
 
 #FIXME: better way to detect beagle ?
@@ -19,7 +20,7 @@
 		deskbar.handler.Match.__init__(self, backend, name)
 		
 	def action(self, text=None):
-		os.spawnvp(os.P_NOWAIT, "best", ['best', '--no-tray', '--show-window', self._name])
+		gobject.spawn_async(["best", '--no-tray', '--show-window', self._name], flags=gobject.SPAWN_SEARCH_PATH)
 	
 	def get_verb(self):
 		return _("Search <b>%(name)s</b> with Beagle")
Index: deskbar/handlers/directories.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/directories.py,v
retrieving revision 1.5
diff -u -r1.5 directories.py
--- deskbar/handlers/directories.py	20 Oct 2005 21:39:07 -0000	1.5
+++ deskbar/handlers/directories.py	30 Oct 2005 17:30:54 -0000
@@ -4,6 +4,7 @@
 
 from gettext import gettext as _
 
+import gobject
 import gtk, gnome.ui
 import deskbar, deskbar.indexer
 import deskbar.handler
@@ -24,7 +25,7 @@
 		self._filename = absname
 		
 	def action(self, text=None):
-		os.spawnlp(os.P_NOWAIT, "nautilus", "nautilus", self._filename)
+		gobject.spawn_async(["nautilus", self._filename], flags=gobject.SPAWN_SEARCH_PATH)
 	
 	def get_verb(self):
 		return _("Open folder <b>%(name)s</b>")
Index: deskbar/handlers/files.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/files.py,v
retrieving revision 1.6
diff -u -r1.6 files.py
--- deskbar/handlers/files.py	20 Oct 2005 21:39:07 -0000	1.6
+++ deskbar/handlers/files.py	30 Oct 2005 17:30:54 -0000
@@ -4,6 +4,7 @@
 
 from gettext import gettext as _
 
+import gobject
 import gtk, gnome.ui
 import deskbar, deskbar.indexer
 import deskbar.handler
@@ -26,7 +27,7 @@
 		self._filename = absname
 				
 	def action(self, text=None):
-		os.spawnlp(os.P_NOWAIT, "gnome-open", "gnome-open", self._filename)
+		gobject.spawn_async(["gnome-open", self._filename], flags=gobject.SPAWN_SEARCH_PATH)
 		
 	def get_verb(self):
 		return _("Open <b>%(name)s</b>")
Index: deskbar/handlers/google-live.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/google-live.py,v
retrieving revision 1.3
diff -u -r1.3 google-live.py
--- deskbar/handlers/google-live.py	20 Oct 2005 22:32:06 -0000	1.3
+++ deskbar/handlers/google-live.py	30 Oct 2005 17:30:54 -0000
@@ -57,7 +57,7 @@
 		return "%(name)s"
 		
 	def action(self, text=None):
-		os.spawnlp(os.P_NOWAIT, "gnome-open", "gnome-open", self.__url)
+		gobject.spawn_async(["gnome-open", self.__url], flags=gobject.SPAWN_SEARCH_PATH)
 
 class GoogleLiveHandler (AsyncHandler):
 	"""
Index: deskbar/handlers/gtkbookmarks.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/gtkbookmarks.py,v
retrieving revision 1.10
diff -u -r1.10 gtkbookmarks.py
--- deskbar/handlers/gtkbookmarks.py	22 Oct 2005 16:05:20 -0000	1.10
+++ deskbar/handlers/gtkbookmarks.py	30 Oct 2005 17:30:54 -0000
@@ -2,6 +2,7 @@
 from os.path import expanduser, split, exists
 from gettext import gettext as _
 
+import gobject
 import gnomevfs
 import deskbar.handler
 from deskbar.filewatcher import FileWatcher
@@ -22,7 +23,7 @@
 		
 	def action(self, text=None):
 		self._priority = self._priority+1
-		os.spawnlp(os.P_NOWAIT, "nautilus", "nautilus", self._path)
+		gobject.spawn_async(["nautilus", self._path], flags=gobject.SPAWN_SEARCH_PATH)
 	
 	def get_verb(self):
 		return _("Open location <b>%(name)s</b>")
Index: deskbar/handlers/pathprograms.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/pathprograms.py,v
retrieving revision 1.7
diff -u -r1.7 pathprograms.py
--- deskbar/handlers/pathprograms.py	20 Oct 2005 23:25:48 -0000	1.7
+++ deskbar/handlers/pathprograms.py	30 Oct 2005 17:30:54 -0000
@@ -3,6 +3,7 @@
 from os.path import join, isfile, abspath, splitext, expanduser, exists, isdir
 from gettext import gettext as _
 
+import gobject
 import gtk
 import deskbar, deskbar.indexer
 import deskbar.handler
@@ -25,11 +26,11 @@
 	def action(self, text=None):
 		self._priority = self._priority+1
 		if text == None:
-			os.spawnlp(os.P_NOWAIT, self._name, self._name)
+			gobject.spawn_async([self._name], flags=gobject.SPAWN_SEARCH_PATH)
 		else:
 			args = text.split(" ")[1:]
 			args.insert(0, self._name)
-			os.spawnvp(os.P_NOWAIT, self._name, args)
+			gobject.spawn_async(args, flags=gobject.SPAWN_SEARCH_PATH)
 	
 	def get_verb(self):
 		return _("Execute <b>%(text)s</b>")
Index: deskbar/handlers/programs.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/programs.py,v
retrieving revision 1.22
diff -u -r1.22 programs.py
--- deskbar/handlers/programs.py	24 Oct 2005 21:40:15 -0000	1.22
+++ deskbar/handlers/programs.py	30 Oct 2005 17:30:54 -0000
@@ -3,6 +3,7 @@
 from os.path import join, isfile, abspath, splitext, expanduser
 from gettext import gettext as _
 
+import gobject
 import gtk
 import deskbar, deskbar.indexer, deskbar.locale_utils, deskbar.handler_utils
 import deskbar.handler
@@ -43,7 +44,7 @@
 			args.append(text)
 			
 		print 'Running "%s" "%r"' % (prog, args)
-		os.spawnvp(os.P_NOWAIT, prog, args)
+		gobject.spawn_async(args, flags=gobject.SPAWN_SEARCH_PATH)
 	
 	def get_verb(self):
 		return _("Launch <b>%(name)s</b> (%(prog)s)")
Index: deskbar/handlers/volumes.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/volumes.py,v
retrieving revision 1.7
diff -u -r1.7 volumes.py
--- deskbar/handlers/volumes.py	20 Oct 2005 21:39:07 -0000	1.7
+++ deskbar/handlers/volumes.py	30 Oct 2005 17:30:54 -0000
@@ -3,6 +3,8 @@
 from os.path import join
 from gettext import gettext as _
 
+import gobject
+
 import deskbar
 from deskbar.handler import Handler
 from deskbar.handler import Match
@@ -26,7 +28,7 @@
 	
 	def action(self, text=None):
 		self._priority = self._priority+1
-		os.spawnlp(os.P_NOWAIT, "nautilus", "nautilus", self.__drive.get_activation_uri())
+		gobject.spawn_async(["nautilus", self.__drive.get_activation_uri()], flags=gobject.SPAWN_SEARCH_PATH)
 	 
 	def get_verb(self):
 		uri_scheme = gnomevfs.get_uri_scheme(self.__drive.get_activation_uri()) 
Index: deskbar/handlers/web_address.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/handlers/web_address.py,v
retrieving revision 1.10
diff -u -r1.10 web_address.py
--- deskbar/handlers/web_address.py	23 Oct 2005 14:18:08 -0000	1.10
+++ deskbar/handlers/web_address.py	30 Oct 2005 17:30:54 -0000
@@ -1,5 +1,6 @@
 from gettext import gettext as _
 import re, os
+import gobject
 import gnomevfs
 import deskbar.handler
 
@@ -27,7 +28,7 @@
 		if self._url.startswith("http"):
 			gnomevfs.url_show(self._url)
 		else:
-			os.spawnlp(os.P_NOWAIT, "nautilus", "nautilus", self._url)
+			gobject.spawn_async(["nautilus", self._url], flags=gobject.SPAWN_SEARCH_PATH)
 	
 	def get_verb(self):
 		if not self._has_method:
