description "The Unity Settings Daemon"
author "Dimitri John Ledkov <xnox@ubuntu.com>"

start on started dbus and starting gnome-session
stop on stopping gnome-session

pre-start script
    for DESKTOP in $(echo "$XDG_CURRENT_DESKTOP" | sed 's/:/ /g')
    do
      if [ "x$DESKTOP" = "xUnity" ]; then
        exit 0
      fi
    done
    stop
end script

respawn
exec /usr/lib/unity-settings-daemon/unity-settings-daemon
