mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* usr/bin/byobu-launch, usr/bin/byobu-launcher:
- fix situation where the profile might exit 0, and prevent a user from logging in
This commit is contained in:
parent
44a83fcd58
commit
893033cf07
3 changed files with 17 additions and 12 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
|||
byobu (3.32) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/byobu-launch, usr/bin/byobu-launcher:
|
||||
- fix situation where the profile might exit 0,
|
||||
and prevent a user from logging in
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 15 Apr 2011 13:40:31 -0500
|
||||
|
||||
|
|
|
@ -21,15 +21,16 @@ PKG="byobu"
|
|||
DATA="$HOME/.$PKG"
|
||||
case "$-" in
|
||||
*i*)
|
||||
byobu-launcher
|
||||
;;
|
||||
esac
|
||||
# Wait very briefly for the no-logout flag to get written?
|
||||
sleep 0.1
|
||||
if [ -e "$DATA/no-logout-on-detach" ] || [ -e "/var/run/screen/S-$USER/byobu.no-logout" ]; then
|
||||
if byobu-launcher; then
|
||||
# Wait very briefly for the no-logout flag to get written?
|
||||
sleep 0.1
|
||||
if [ -e "$DATA/no-logout-on-detach" ] || [ -e "/var/run/screen/S-$USER/byobu.no-logout" ]; then
|
||||
# The user does not want to logout on byobu detach
|
||||
rm -f "/var/run/screen/S-$USER/byobu.no-logout" # Remove one-time no-logout flag, if it exists
|
||||
true
|
||||
else
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -22,7 +22,9 @@ DATA="$HOME/.$PKG"
|
|||
[ -z "$BYOBU_PREFIX" ] && export BYOBU_PREFIX="/usr"
|
||||
export BYOBU_PREFIX
|
||||
|
||||
if [ ! -e "$DATA/disable-autolaunch" ]; then
|
||||
if [ -e "$DATA/disable-autolaunch" ]; then
|
||||
false
|
||||
else
|
||||
case "$TERM" in
|
||||
*screen*)
|
||||
# Handle nesting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue