#note: locker should never need to run since inactivity warn will kill session for us
# if we are running screensaver in user session, groovix-inactivity-warn will detect that and not trigger a logout unless the display is dirty

if [ "$GX_SESSION_INACTIVITY_LOGOUT_DURING_SESSION" = "false" ] ; then
	echo xautolock startup during session is disabled, killing xautolock
	#if we're not running it this won't hurt
	killall xautolock
else
	#if already running just try to start again, won't hurt
	xautolock -secure -time $GX_LOGOUT_TIME -locker groovix-xautolock-locker -notify $GX_LOGOUT_NOTIFY_TIME -notifier /usr/bin/groovix-inactivity-warn  &
fi


