Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-02 13:54:17 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-02 13:54:17 (GMT)
commit0a500c768218d95063f489fa8d8d1050442e49c9 (patch)
tree70d02bf967bc412379fb52f454dc721c086dc5a1 /scripts
parent90b4dc1e1d73582df0071ea996f9cad6ab957115 (diff)
Run X on the current tty
So that we have system authentication. Otherwise sounds and probably other stuff breaks.
Diffstat (limited to 'scripts')
-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"