byobu starts a new session every time, instead of attaching to existing one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Incomplete
|
High
|
Unassigned |
Bug Description
It took a bit of digging through the code to figure out where this is happening, but it looks like if windows.tmux exists and isn't empty, byobu sets CUSTOM_WINDOW_SET to 1 which forces a new session to be created.
This would make sense for "named" windows.tmux configs (e.g. windows.
The expected behavior for me would be that if I connect to a machine that has an existing session running, connect to that session unless I specify that I want a new session created.
If no session exists, then create a new one, using the information in windows.tmux (if it contains commands) or just create a single default window using byobu-shell.
does this manifest by when you connect to a ssh server with byobu running (and has existing tabs and stuff) , it seems to randomly just 'reset' and you lose all your open tabs and scrollback? This has been happening to me for several major versions and is currently happening in the latest version in ubuntu artful and it makes it pretty much impossible to rely on byobu
Version: 5.123-0ubuntu1