diff --git a/debian/changelog b/debian/changelog index e1e9a2f6..623b0328 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 05 Oct 2011 18:05:32 -0400 diff --git a/usr/bin/byobu-select-session b/usr/bin/byobu-select-session index 01cf6b6c..1487c116 100755 --- a/usr/bin/byobu-select-session +++ b/usr/bin/byobu-select-session @@ -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"):