--- shortcutd-0.1.3/debian/event	2010-06-22 13:13:51.000000000 +0300
+++ /scratchbox/users/niko/home/niko/shortcutd-0.1.3/debian/event	2010-08-21 03:09:25.796971050 +0300
@@ -1,26 +1,10 @@
-start on XSESSIONS_STARTING
+start on started hildon-desktop
 stop on stopped hal
 #stop on stopped dbus
 respawn
 respawn limit 15 3
 
-script
-
-	# should probably be using run-standalone.sh instead of this hack,
-	# but if it works don't fix it :)
-
-	## get dbus session bus address
-	sleep 2
-	PATH="/bin/:/usr/bin"
-	pids=`pgrep dbus-daemon`
-	for pid in $pids; do
-        FILE=`cat /proc/$pid/environ | perl -pe 's/\x0/\n/g'|grep SESSION_BUS_ADDRESS_FILE \
-       		|sed -e 's/SESSION_BUS_ADDRESS_FILE=//g'`
-	done
-	eval `cat $FILE`
-
-	export DISPLAY=:0.0
-	exec su user -c "exec /usr/sbin/shortcutd"
-	sleep 5
 
+script
+	exec su user -c "run-standalone.sh /usr/sbin/shortcutd"
 end script
