Specifying automatic windows in tmux backend creates more than one tmux session

Bug #1273686 reported by Ankur Sinha
8
This bug affects 1 person
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.69-2.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1.Select tmux backend in byobu
2.Create a simple ~/.byobu/.tmux.conf file like this:

[asinha@ankur-laptop ~]$ cat .byobu/.tmux.conf
new-window -ad -n "ncmpcpp"
new-window -ad -n "irssi"
[asinha@ankur-laptop ~]$

3. run byobu

Actual results:
One session with the two specified windows should be created

Expected results:
Two sessions are created:

[asinha@ankur-laptop ~]$ tmux ls
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@ankur-laptop ~]$

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.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Ah, thanks for filing this bug! This was actually a duplicate of Bug: #1273685

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.