maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Application Instance (https://talk.maemo.org/showthread.php?t=58295)

waelfarouk0 2010-07-13 07:42

Re: Application Instance
 
Works fine now

i fixed my startup script to be like this


start on started hildon-desktop
stop on stopped hal
#stop on stopped dbus
respawn
respawn limit 15 3

script

## 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/bin/appname"
sleep 5

end script


All times are GMT. The time now is 06:13.

vBulletin® Version 3.8.8