* usr/lib/byobu/include/select-session.py:

-  Pass command name in argument list
     + When calling os.execpv(), make sure the first argument in the argument
       list is the command name so that the command shows up in tools like ps
This commit is contained in:
Dustin Kirkland 2016-06-27 15:47:56 -05:00
commit 182d3f4154
2 changed files with 12 additions and 5 deletions

7
debian/changelog vendored
View file

@ -1,5 +1,6 @@
byobu (5.109) unreleased; urgency=medium
[ Dustin Kirkland ]
* usr/lib/byobu/include/icons, usr/lib/byobu/reboot_required,
usr/lib/byobu/updates_available:
- add an checkbox icon
@ -8,6 +9,12 @@ byobu (5.109) unreleased; urgency=medium
session.py, usr/lib/byobu/reboot_required,
usr/lib/byobu/updates_available:
[ Grant Likely ]
* usr/lib/byobu/include/select-session.py:
- Pass command name in argument list
+ When calling os.execpv(), make sure the first argument in the argument
list is the command name so that the command shows up in tools like ps
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 31 May 2016 10:03:15 -0500
byobu (5.108-0ubuntu1) yakkety; urgency=medium

View file

@ -103,9 +103,9 @@ def attach_session(session):
backend, session_name = session.split("____", 2)
# must use the binary, not the wrapper!
if backend == "tmux":
os.execvp("tmux", ["", "-2", "attach", "-t", session_name])
os.execvp("tmux", ["tmux", "-2", "attach", "-t", session_name])
else:
os.execvp("screen", ["", "-AOxRR", session_name])
os.execvp("screen", ["screen", "-AOxRR", session_name])
sessions = get_sessions()
@ -153,9 +153,9 @@ if choice >= 1:
if sessions[choice - 1] == "NEW":
# Create a new session
if BYOBU_BACKEND == "tmux":
os.execvp("byobu", ["", "new-session", SHELL])
os.execvp("byobu", ["byobu", "new-session", SHELL])
else:
os.execvp("byobu", ["", SHELL])
os.execvp("byobu", ["byobu", SHELL])
elif sessions[choice - 1] == "SHELL":
os.execvp(SHELL, [SHELL])
else:
@ -167,4 +167,4 @@ if BYOBU_BACKEND == "tmux":
args = ""
else:
args = "-AOxRR"
os.execvp("byobu", ["", args])
os.execvp("byobu", ["byobu", args])