From 63343cbce2ebe5f324deb6adee92dafd1b2d9977 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 28 Nov 2016 09:22:41 -0600 Subject: [PATCH] * usr/lib/byobu/include/select-session.py: LP: #1548384 - when selecting a session, if only empty sessions exist, then create a new one; the bug was that tmux considers a null string argument still an argument --- debian/changelog | 4 ++++ usr/lib/byobu/include/select-session.py | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 17656664..e8f14798 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,10 @@ byobu (5.113) unreleased; urgency=medium - ping the router, too, to verify at least local connectivity * usr/lib/byobu/include/shutil: - use a prime here, too + * usr/lib/byobu/include/select-session.py: LP: #1548384 + - when selecting a session, if only empty sessions exist, then create + a new one; the bug was that tmux considers a null string argument + still an argument -- Dustin Kirkland Fri, 16 Sep 2016 10:13:08 -0500 diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 32a5f01c..a95416ad 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -199,7 +199,6 @@ if choice >= 1: # No valid selection, default to the youngest session, create if necessary if BYOBU_BACKEND == "tmux": - args = "" + os.execvp("tmux", ["tmux"]) else: - args = "-AOxRR" -os.execvp("byobu", ["byobu", args]) + os.execvp("screen", ["screen", "-AOxRR"])