diff options
Diffstat (limited to 'scripts/shell/start-sugar')
-rwxr-xr-x | scripts/shell/start-sugar | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/shell/start-sugar b/scripts/shell/start-sugar index 3ac2f09..a345eef 100755 --- a/scripts/shell/start-sugar +++ b/scripts/shell/start-sugar @@ -4,6 +4,8 @@ shelldir=`dirname "$0"` scriptsdir=`dirname "$shelldir"` rootdir=`dirname "$scriptsdir"` display=`$scriptsdir/find-free-display` +screen_dpi=`$scriptsdir/get-screen-dpi` +xephyr_options="-dpi $screen_dpi" if [ -f $rootdir/config ]; then source $rootdir/config @@ -23,8 +25,12 @@ if [ ! -z $SUGAR_PROFILE ]; then fi fi -if [ -z $RUN_IN_WINDOW ]; then +if [ -z $DISPLAY ]; then xinit $scriptsdir/xinitrc -- $display else - xinit $scriptsdir/xinitrc -- /usr/bin/Xephyr $display + if [ -z $RUN_IN_WINDOW ]; then + xephyr_options="$xephyr_options -fullscreen" + fi + + xinit $scriptsdir/xinitrc -- /usr/bin/Xephyr $display $xephyr_options fi |