diff options
Diffstat (limited to 'scripts/shell/start-sugar')
-rwxr-xr-x | scripts/shell/start-sugar | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/shell/start-sugar b/scripts/shell/start-sugar deleted file mode 100755 index 5f5d3d4..0000000 --- a/scripts/shell/start-sugar +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -shelldir=`dirname "$0"` -scriptsdir=`dirname "$shelldir"` -rootdir=`dirname "$scriptsdir"` -display=`$scriptsdir/find-free-display` - -if [ -f $rootdir/config ]; then - source $rootdir/config -fi - -if [ -n $SUGAR_DISPLAY ]; then - SUGAR_XKBCONFIG=`mktemp -t sugar-xkbconfig-XXXXXX` - setxkbmap -print > $SUGAR_XKBCONFIG - export SUGAR_XKBCONFIG -fi - -if [ ! -z $SUGAR_PROFILE ]; then - grep -q PROFILE $rootdir/config - if [ $? -eq 1 ]; then - randomstring=`</dev/urandom tr -cd A-Za-z0-9 | head -c10` - echo "PROFILE=$randomstring" >> $ROOT_DIR/config - fi -fi - -if [ -z $DISPLAY ]; then - tty_num=`tty | grep -oE '[0-9]+$'` - x_options="vt$tty_num" - - xinit $scriptsdir/xinitrc -- $display $x_options -else - screen_dpi=`$scriptsdir/get-screen-dpi` - xephyr_options="-dpi $screen_dpi" - - if [ -z $RUN_IN_WINDOW ]; then - xephyr_options="$xephyr_options -fullscreen" - fi - - xinit $scriptsdir/xinitrc -- /usr/bin/Xephyr $display $xephyr_options -fi |