Specifying automatic windows in tmux backend creates more than one tmux session
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
New
|
Undecided
|
Unassigned | ||
byobu (Fedora) |
Unknown
|
Unknown
|
Bug Description
Description of problem:
I've been trying to specify some windows on startup with the tmux backend. For some reason, when I run byobu, *two* tmux sessions are created instead of 1. The session that opens up does not have the windows specified. It is a completely new session with a blank window.
Version-Release number of selected component (if applicable):
byobu-5.
How reproducible:
Always
Steps to Reproduce:
1.Select tmux backend in byobu
2.Create a simple ~/.byobu/.tmux.conf file like this:
[asinha@
new-window -ad -n "ncmpcpp"
new-window -ad -n "irssi"
[asinha@
3. run byobu
Actual results:
One session with the two specified windows should be created
Expected results:
Two sessions are created:
[asinha@
0: 4 windows (created Tue Jan 28 23:59:18 2014) [80x23]
1: 1 windows (created Tue Jan 28 23:59:18 2014) [168x34] (attached)
[asinha@
The second one is the one that I'm given by byobu as it starts. The first has the two windows, *twice*. I'm filing a separate bug for the duplicate windows issue.
Additional info:
NA
This seems like a tmux issue more than a byobu one. It seems to create two sessions if I specify new windows. To get only one session, I need to use:
`tmux at` with a config file like this:
new -d -s default
new-window -d -n "ncmpcpp" -t 0 -k
new-window -d -n "irssi" -t 1
So, if I use `byobu at`, I get one session with my required windows.
Ah, thanks for filing this bug! This was actually a duplicate of Bug: #1273685