# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $

# This file is sourced by Xsession(5), not executed.

KSCREEND_DISABLED=0
KSCREEND_GLOBAL="/etc/xdg/autostart/kscreen.desktop"
KSCREEND_LOCAL="$HOME/.config/autostart/kscreen.desktop"
if [ "$DESKTOP_SESSION" != "failsafe" ]; then
if [ -f "$KSCREEND_LOCAL" ]; then
 grep "Hidden=true" "$KSCREEND_LOCAL" > /dev/null
 if [ $? -eq "0" ]; then KSCREEND_DISABLED=1; fi
fi
if [ "$KSCREEND_DISABLED" != "1" ]; then
  if [ -f "$KSCREEND_GLOBAL" ]; then
    grep "Hidden=true" "$KSCREEND_GLOBAL" > /dev/null
    if [ $? -eq "0" ]; then KSCREEND_DISABLED=1; fi
  fi
fi
if [ "$KSCREEND_DISABLED" != "1" ]; then
  kscreend-setup
fi
fi
#do it after kscreend for probably other primary monitor
if ! /usr/bin/xrdb -query | grep Xft > /dev/null; then
     /usr/bin/fly-dm-set-dpi.sh user
fi

exec $STARTUP

# vim:set ai et sts=2 sw=2 tw=80:
