* byobu-launcher: make sure that we're not already in a screen session

before launching or re-attaching byobu

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-08-28 10:51:48 -05:00
commit ba5e1bf783
2 changed files with 6 additions and 2 deletions

View file

@ -19,6 +19,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
[ -z "$STY" ] || exit 0 [ -z "$STY" ] || exit 0
case "$TERM" in
*screen*) exit 0 ;;
esac
out=`screen -ls 2>/dev/null` || true out=`screen -ls 2>/dev/null` || true
if echo "$out" | grep -qsi "^No Sockets found in "; then if echo "$out" | grep -qsi "^No Sockets found in "; then

5
debian/changelog vendored
View file

@ -1,8 +1,9 @@
byobu (2.30) unreleased; urgency=low byobu (2.30) unreleased; urgency=low
* UNRELEASED * byobu-launcher: make sure that we're not already in a screen session
before launching or re-attaching byobu
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 26 Aug 2009 15:35:30 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Fri, 28 Aug 2009 10:48:38 -0500
byobu (2.29-0ubuntu1) karmic; urgency=low byobu (2.29-0ubuntu1) karmic; urgency=low