diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-02 13:56:54 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-02 13:56:54 (GMT) |
commit | d87643d57e350159ff4b3a6e1af79b41d335d8e0 (patch) | |
tree | 007fb75bbc9b25e51bfa6abc86638f45f6832864 | |
parent | 0a500c768218d95063f489fa8d8d1050442e49c9 (diff) |
Move xephyr options inside the if block
They doesn't make sense outside.
-rwxr-xr-x | scripts/shell/start-sugar | 5 |
1 files changed, 3 insertions, 2 deletions
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 |