* usr/lib/byobu/include/select-session.py: LP: #1411122

- don't print when attaching and restoring environment variables
This commit is contained in:
Mike Miller 2015-01-15 01:59:32 -05:00
commit 3d44d05d0f
2 changed files with 3 additions and 3 deletions

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (5.90) unreleased; urgency=medium
* UNRELEASED
[ Mike Miller ]
* usr/lib/byobu/include/select-session.py: LP: #1411122
- don't print when attaching and restoring environment variables
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 12 Jan 2015 17:39:42 -0600

View file

@ -88,12 +88,10 @@ def update_environment(session):
cmd = ["tmux", "setenv", "-t", session_name, var, value]
else:
cmd = ["screen", "-S", session_name, "-X", "setenv", var, value]
print("Sending variable: %s" % (cmd, ))
subprocess.call(cmd, stdout=open(os.devnull, "w"))
def attach_session(session):
print("Attaching: [%s]\n" % session)
update_environment(session)
backend, session_name = session.split("____", 2)
# must use the binary, not the wrapper!