byobu -ls doesn't show sessions with custom sessionnames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Low
|
Unassigned | ||
byobu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
if the user doesn't provide a session name with "-S sessionname", then byobu automatically sets "-S byobu". According to screen's manpage, this applies the sessionname "byobu" to -ls/-list, -r, (and -x?).
This is fine for having a single screen/byobu session open, but if the user has created multiple sessions with "byobu -S custom", than those sessions don't appear in "byobu -ls"/"byobu -list" and can't be attached with "byobu -r"/"byobu -x".
I don't know if this is the best way to fix this, but an easy way is just to add these 4 commands to the case statement at line 79:
PROFILE="-c $BYOBU_
NAME="-S $PKG"
# Zero out $NAME if user has specified a -S
for i in $@; do
case $i in
esac
done
If there is only one session, screen -r and screen -x behave the same with or without the -S byobu specified, so this change doesn't change single-session behavior.
Changed in byobu: | |
status: | Triaged → Fix Committed |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Subscribing Scott Moser, since he and I discussed this recently.