From 40cfad04d33ba1c276bfed903046b9addedefa57 Mon Sep 17 00:00:00 2001 From: Pierre Gueth Date: Thu, 26 Mar 2009 17:34:19 +0100 Subject: [PATCH] really works --- applet.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/applet.py b/applet.py index da0cd14..096ee2d 100755 --- a/applet.py +++ b/applet.py @@ -34,7 +34,8 @@ class Action: print "unknown action %s for %s" % (self.name,self.path) def terminal(self): if not os.fork(): - subprocess.Popen(['gnome-terminal',"--default-working-directory=%s" % self.path]).wait() + os.chdir(self.path) + subprocess.Popen(['gnome-terminal']).wait() sys.exit() def nautilus(self): if not os.fork(): @@ -42,7 +43,8 @@ class Action: sys.exit() def gitk(self): if not os.fork(): - subprocess.Popen(['gitk',self.path]).wait() + os.chdir(self.path) + subprocess.Popen(['gitk']).wait() sys.exit() def __call__(self):