From 0a500c768218d95063f489fa8d8d1050442e49c9 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 02 Nov 2012 13:54:17 +0000 Subject: Run X on the current tty So that we have system authentication. Otherwise sounds and probably other stuff breaks. --- (limited to 'scripts') diff --git a/scripts/shell/start-sugar b/scripts/shell/start-sugar index a345eef..fb655b4 100755 --- a/scripts/shell/start-sugar +++ b/scripts/shell/start-sugar @@ -26,7 +26,10 @@ if [ ! -z $SUGAR_PROFILE ]; then fi if [ -z $DISPLAY ]; then - xinit $scriptsdir/xinitrc -- $display + tty_num=`tty | grep -oE '[0-9]+$'` + x_options="vt$tty_num" + + xinit $scriptsdir/xinitrc -- $display $x_options else if [ -z $RUN_IN_WINDOW ]; then xephyr_options="$xephyr_options -fullscreen" -- cgit v0.9.1