diff --git a/debian/changelog b/debian/changelog index 2c131ea5..ef2e90a7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 31 May 2016 10:03:15 -0500 byobu (5.108-0ubuntu1) yakkety; urgency=medium diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 0fb28c9f..c0278d1d 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -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])