mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
really works
This commit is contained in:
parent
be0a53e877
commit
40cfad04d3
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user