* usr/bin/byobu-select-session: LP: #855795

- fix broken select-session support; screen -ls exits 1
This commit is contained in:
Dustin Kirkland 2011-09-21 13:40:24 -05:00
commit 00475e665d
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -9,6 +9,8 @@ byobu (4.34) unreleased; urgency=low
- fix regressed monochrome support
* usr/bin/byobu-janitor, usr/share/byobu/status/status:
- proper fix for ec2 by default in cloud instances
* usr/bin/byobu-select-session: LP: #855795
- fix broken select-session support; screen -ls exits 1
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 08 Sep 2011 14:26:43 -0700

View file

@ -34,7 +34,7 @@ def get_sessions():
i = 0
if commands.getstatusoutput("command -v screen")[0] == 0:
output = commands.getstatusoutput("screen -ls")
if output[0] == 0:
if output[0] >= 0:
for s in output[1].split("\n"):
s = re.sub(r'\s+', ' ', s)
# Ignore hidden sessions (named sessions that start with a ".")