Thread: [Fremantle Maemo5] start clock app from terminal or script
View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#7
Tested the dbus command and it works fine when executed as root (and also as 'su user -c ...', so no idea. I did not test to execute it as service.

About worldclock installment:
please read from here and download the deb, extract it and simply replace /usr/bin/worldclock. Should do the trick.


--edit
just checked with file in /etc/event.d and indeed it fails with "Failed to open connection to "session" message bus: (null)"
But simply preceeding with run-standalone.sh works.

description "start worldclock on boot"

author "peterleinchen"

start on started hildon-desktop

#respawn

exec su user -c "run-standalone.sh dbus-send --type=method_call --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:\"worldclock\""
Please note the escaped " around worldclock.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2015-04-14 at 11:10.
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post: