diff --git a/debian/changelog b/debian/changelog index 78c393d0..8fed0c48 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ byobu (2.69) unreleased; urgency=low - * UNRELEASED + * usr/bin/byobu-launcher: prompt on nested screen connection, LP: #565398 -- Dustin Kirkland Thu, 15 Apr 2010 12:12:39 -0500 diff --git a/usr/bin/byobu-launcher b/usr/bin/byobu-launcher index a665f288..6ebc2d45 100755 --- a/usr/bin/byobu-launcher +++ b/usr/bin/byobu-launcher @@ -17,4 +17,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -[ ! -r "$HOME/.byobu/disable-autolaunch" ] && exec /usr/bin/byobu +if [ ! -r "$HOME/.byobu/disable-autolaunch" ]; then + if printf "$TERM" | grep -qs "screen"; then + printf "Do you want to launch byobu in a nested session? [y/N]: " + answer=$(head -n1) + if [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then + exec /usr/bin/byobu + fi + fi +fi +true