Byobu refuses to launch if running ssh from a screen session
Bug #403988 reported by
Chow Loong Jin
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Medium
|
Dustin Kirkland | ||
byobu (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
When ssh-ing into a remote machine from inside a screen session, TERM is already set to "screen", and this environment variable gets propagated into the shell session. However, Byobu does not like this, and refuses to start. The proper way to detect if screen is already running is to check the existence of the STY environment variable, which contains the current screen session. This will be blank on a fresh SSH session.
Related branches
lp:~hyperair/byobu/screen-detection
- Dustin Kirkland : Approve
- Diff: None lines
Changed in byobu: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This bug was introduced again in revision 722 ( http:// bazaar. launchpad. net/~kirkland/ byobu/trunk/ revision/ 722 ):
721 kirklan | # Make sure that we're not already in a screen session
672 kirklan | [ -z "$STY" ] || exit 0
722 kirklan | [ "$TERM" = "screen-bce" ] && exit 0