From d87643d57e350159ff4b3a6e1af79b41d335d8e0 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 02 Nov 2012 13:56:54 +0000 Subject: Move xephyr options inside the if block They doesn't make sense outside. --- (limited to 'scripts') diff --git a/scripts/shell/start-sugar b/scripts/shell/start-sugar index fb655b4..5f5d3d4 100755 --- a/scripts/shell/start-sugar +++ b/scripts/shell/start-sugar @@ -4,8 +4,6 @@ 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 @@ -31,6 +29,9 @@ if [ -z $DISPLAY ]; then 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 -- cgit v0.9.1