diff options
Diffstat (limited to 'scripts/shell/start-sugar')
-rwxr-xr-x | scripts/shell/start-sugar | 5 |
1 files changed, 4 insertions, 1 deletions
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" |