View Single Post
Posts: 669 | Thanked: 433 times | Joined on May 2010
#467
Originally Posted by somebody View Post
Oh, yes, I'm still sleepy
Create a script file (e.g. start_someplayer.sh) in /home/user directory:

Code:
#!/bin/sh
someplayer &
sleep 20 
dbus-send --type=method_call --dest=ru.somebody.someplayer / ru.somebody.someplayer.toggle
then add permissions to execute:
Code:
$ chmod +x /home/user/start_someplayer.sh
then add this command to alarmd (or try to invoke this in terminal):
Code:
/home/user/start_someplayer.sh
I tried creating the sh script but when i execute it it launches someplayer with an empty playlist - why is that? when it is executed from the hildon desktop shortcut it works fine...