diff --git a/src/modules/gui/filesystem/home/pi/scripts/start_gui b/src/modules/gui/filesystem/home/pi/scripts/start_gui index 88d2d961..25f7f62d 100755 --- a/src/modules/gui/filesystem/home/pi/scripts/start_gui +++ b/src/modules/gui/filesystem/home/pi/scripts/start_gui @@ -6,12 +6,12 @@ DISABLE_POWER_MANAGEMENT=yes # Rotate screen if needed, see 'xrandr -h' for options. DISPLAY_ORIENTATION=normal -if ["${DISPLAY_ORIENTATION}" != 'normal']; +if [[ "${DISPLAY_ORIENTATION}" != 'normal' ]]; then xrandr --orientation ${DISPLAY_ORIENTATION} fi -if ["${DISABLE_POWER_MANAGEMENT}" == 'yes']; +if [[ "${DISABLE_POWER_MANAGEMENT}" == 'yes' ]]; then xset s off # don't activate screensaver xset -dpms # disable DPMS (Energy Star) features.