diff --git a/debian/changelog b/debian/changelog index b9940007..ed9e4af1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,8 +13,10 @@ byobu (5.134) unreleased; urgency=medium - bumped date * usr/bin/byobu-select-profile.in: LP: #1828296 - add missing listprofiles logic + * usr/lib/byobu/include/select-session.py: + - fix inverted logic on session reuse - -- Dustin Kirkland Wed, 22 Nov 2023 23:16:45 -0600 + -- Dustin Kirkland Wed, 22 Nov 2023 23:25:56 -0600 byobu (5.133-0ubuntu1) focal; urgency=medium diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index b28c901f..3812b41a 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -133,9 +133,9 @@ def attach_session(session): # must use the binary, not the wrapper! if backend == "tmux": if reuse_sessions: - os.execvp("tmux", ["tmux", "-u", "new-session", "-t", session_name, ";", "set-option", "destroy-unattached"]) - else: os.execvp("tmux", ["tmux", "-u", "attach", "-t", session_name]) + else: + os.execvp("tmux", ["tmux", "-u", "new-session", "-t", session_name, ";", "set-option", "destroy-unattached"]) else: os.execvp("screen", ["screen", "-AOxRR", session_name])