Skip to content

Commit

Permalink
Merge branch 'issue-80' into issue-79
Browse files Browse the repository at this point in the history
  • Loading branch information
o-smirnov committed Jun 15, 2016
2 parents fee9daf + 2c015cc commit 33d300e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Pyxis/bin/pyxis
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,15 @@ if __name__ == "__main__":
args.append("-d");
if SPAWN_SCREEN_LOG:
args.append("-L");
args += sys.argv;
args.append("--running-in-screen");
if PAUSE_ON_EXIT and "--pause-on-exit" not in args:
args.append("--pause-on-exit");
args += [ "bash", "-ci" ]
pyxis_args = sys.argv
pyxis_args.append("--running-in-screen");
if PAUSE_ON_EXIT and "--pause-on-exit" not in pyxis_args:
pyxis_args.append("--pause-on-exit");
# now turn the pyxis args list into a something that bash -c will process
# quote the single quotes in arguments
pyxis_args = [ re.sub(r'(["\'$` ])',r'\\\1',x) for x in pyxis_args ]
args.append(' '.join(pyxis_args))
os.execv(screenpath,args);

Pyxis.Internals.saveconf();
Expand Down

0 comments on commit 33d300e

Please sign in to comment.