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

- fix inverted logic on session reuse
This commit is contained in:
Dustin Kirkland 2023-11-22 23:26:26 -06:00
parent 1c0af1ca17
commit fcefb33fc0
2 changed files with 5 additions and 3 deletions

4
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Wed, 22 Nov 2023 23:16:45 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 22 Nov 2023 23:25:56 -0600
byobu (5.133-0ubuntu1) focal; urgency=medium

View file

@ -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])