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

- fix bug creating a mess of sessions, where cycling through a bunch
    of copies of the same session
This commit is contained in:
Dustin Kirkland 2019-06-11 19:31:00 -05:00
parent e991e535e4
commit edeae41827
2 changed files with 4 additions and 5 deletions

3
debian/changelog vendored
View file

@ -25,6 +25,9 @@ byobu (5.128) unreleased; urgency=medium
* usr/lib/byobu/disk_io: * usr/lib/byobu/disk_io:
- ensure some values are set to zero, if unreadable - ensure some values are set to zero, if unreadable
- fixes a bug where disk_io causes the rest of the status line to fail - fixes a bug where disk_io causes the rest of the status line to fail
* usr/lib/byobu/include/select-session.py: LP: #1750430
- fix bug creating a mess of sessions, where cycling through a bunch
of copies of the same session
[ Fede Luzzi ] [ Fede Luzzi ]
* usr/lib/byobu/include/mondrian, usr/share/byobu/profiles/tmux: * usr/lib/byobu/include/mondrian, usr/share/byobu/profiles/tmux:

View file

@ -132,11 +132,7 @@ def attach_session(session):
cull_zombies(session_name) cull_zombies(session_name)
# must use the binary, not the wrapper! # must use the binary, not the wrapper!
if backend == "tmux": if backend == "tmux":
if reuse_sessions: os.execvp("tmux", ["tmux", "attach", "-t", session_name])
os.execvp("tmux", ["tmux", "attach", "-t", session_name])
else:
os.execvp("tmux", ["tmux", "-2", "new-session", "-t", session_name, "-s", "_%s-%i" % (session_name, os.getpid())])
else: else:
os.execvp("screen", ["screen", "-AOxRR", session_name]) os.execvp("screen", ["screen", "-AOxRR", session_name])