* usr/bin/byobu-select-session:

- fix select session to obey BYOBU_BACKEND
This commit is contained in:
Dustin Kirkland 2011-10-07 12:23:20 -05:00
commit 4ff20f7680
2 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View file

@ -8,6 +8,8 @@ byobu (4.40) unreleased; urgency=low
- save a few characters on the status line
* usr/bin/byobu:
- support detection of tmux sessions
* usr/bin/byobu-select-session:
- fix select session to obey BYOBU_BACKEND
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 05 Oct 2011 18:05:32 -0400

View file

@ -32,7 +32,7 @@ text = []
def get_sessions():
sessions = []
i = 0
if commands.getstatusoutput("command -v screen")[0] == 0:
if BYOBU_BACKEND == "screen":
output = commands.getstatusoutput("screen -ls")
if output[0] >= 0:
for s in output[1].split("\n"):
@ -43,7 +43,7 @@ def get_sessions():
items = s.split(" ")
sessions.append("screen____%s" % items[1])
i += 1
if commands.getstatusoutput("command -v tmux")[0] == 0:
if BYOBU_BACKEND == "tmux":
output = commands.getstatusoutput("tmux list-sessions")
if output[0] == 0:
for s in output[1].split("\n"):