mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/bin/byobu-launcher: use screen -wipe, instead of screen -ls, to
clean up destroyed sessions, LP: #508609
This commit is contained in:
parent
aa704c493b
commit
4e48b99cb4
2 changed files with 4 additions and 2 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
|||
byobu (2.48) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
[ darwinawdwinner@gmail.com ]
|
||||
* usr/bin/byobu-launcher: use screen -wipe, instead of screen -ls, to
|
||||
clean up destroyed sessions, LP: #508609
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 12 Jan 2010 12:14:16 -0600
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ RUN="/var/run/screen/S-$USER"
|
|||
[ -z "$STY" ] || exit 0
|
||||
[ "$TERM" = "screen-bce" ] && exit 0
|
||||
|
||||
out=`screen -ls 2>/dev/null` || true
|
||||
out=`screen -wipe 2>/dev/null` || true
|
||||
if echo "$out" | grep -qsi "^No Sockets found in "; then
|
||||
# Start new session
|
||||
$(which $PKG >/dev/null) && exec $PKG || exec screen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue