Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/shell/start-sugar5
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"