1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

added special case for konsole

This commit is contained in:
Joël Schaerer 2009-04-17 15:31:26 +02:00
parent 4f3d98bd3a
commit 891ddae854

View File

@ -253,8 +253,11 @@ def create_actions():
print "launch terminal '%s'" % defaults["terminal"]
if not os.fork():
try:
os.chdir(path)
subprocess.Popen([defaults["terminal"]]).wait()
if defaults["terminal"]=="konsole":
subprocess.Popen([defaults["terminal"],"--workdir=%s"%path]).wait()
else:
os.chdir(path)
subprocess.Popen([defaults["terminal"]]).wait()
except OSError:
pass
sys.exit()