* screen-launcher: don't use the -x argument if launching a new screen,

as this fails to launch default windows, LP: #375768


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-14 13:23:33 -05:00
commit 39dfc3e694
2 changed files with 10 additions and 3 deletions

4
debian/changelog vendored
View file

@ -18,12 +18,14 @@ byobu (2.4) unreleased; urgency=low
the chosen windows; but on refresh, only reload the chosen profile; the chosen windows; but on refresh, only reload the chosen profile;
revert previous hack that did this by creating a temporary config revert previous hack that did this by creating a temporary config
file and broke on hardy, LP: #375309 file and broke on hardy, LP: #375309
* screen-launcher: don't use the -x argument if launching a new screen,
as this fails to launch default windows, LP: #375768
* debian/control: suggest vim, for better handling of status details * debian/control: suggest vim, for better handling of status details
[ David Duffey ] [ David Duffey ]
* rpm/byobu.spec: initial specfile for RH packaging * rpm/byobu.spec: initial specfile for RH packaging
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 14 May 2009 13:03:53 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 14 May 2009 13:22:17 -0500
byobu (2.3-0ubuntu1) karmic; urgency=low byobu (2.3-0ubuntu1) karmic; urgency=low

View file

@ -25,5 +25,10 @@
# and friends can pick it up before going into screen # and friends can pick it up before going into screen
[ -x /bin/bash ] && /bin/true | /bin/bash -i -s [ -x /bin/bash ] && /bin/true | /bin/bash -i -s
# Launch screen arg="-xRR"
exec screen -xRR out=`screen -ls 2>/dev/null`
if echo "$out" | grep -qsi "^No Sockets found in "; then
# Start new session
arg=""
fi
exec screen "$arg"