|
2011-06-28
, 01:41
|
|
Posts: 35 |
Thanked: 2 times |
Joined on Jul 2010
@ lagos, Nigeria
|
#462
|
thanks alot. trying it now.
i guess this will start someplayer and automatically play whatever someplayer was playing as at the last time(the playlist in this case)?
|
2011-06-28
, 01:58
|
|
Posts: 128 |
Thanked: 487 times |
Joined on Oct 2010
@ Novosibirsk, Russia
|
#463
|
#!/bin/sh someplayer & sleep 20 dbus-send --type=method_call --dest=ru.somebody.someplayer / ru.somebody.someplayer.toggle
$ chmod +x /home/user/start_someplayer.sh
/home/user/start_someplayer.sh
|
2011-06-28
, 02:09
|
|
Posts: 35 |
Thanked: 2 times |
Joined on Jul 2010
@ lagos, Nigeria
|
#464
|
Oh, yes, I'm still sleepy
Create a script file (e.g. start_someplayer.sh) in /home/user directory:
then add permissions to execute:Code:#!/bin/sh someplayer & sleep 20 dbus-send --type=method_call --dest=ru.somebody.someplayer / ru.somebody.someplayer.toggle
then add this command to alarmd (or try to invoke this in terminal):Code:$ chmod +x /home/user/start_someplayer.sh
Code:/home/user/start_someplayer.sh
|
2011-06-28
, 02:35
|
|
Posts: 35 |
Thanked: 2 times |
Joined on Jul 2010
@ lagos, Nigeria
|
#465
|
|
2011-06-28
, 03:04
|
|
Posts: 35 |
Thanked: 2 times |
Joined on Jul 2010
@ lagos, Nigeria
|
#466
|
|
2011-06-28
, 07:43
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#467
|
Oh, yes, I'm still sleepy
Create a script file (e.g. start_someplayer.sh) in /home/user directory:
then add permissions to execute:Code:#!/bin/sh someplayer & sleep 20 dbus-send --type=method_call --dest=ru.somebody.someplayer / ru.somebody.someplayer.toggle
then add this command to alarmd (or try to invoke this in terminal):Code:$ chmod +x /home/user/start_someplayer.sh
Code:/home/user/start_someplayer.sh
|
2011-06-28
, 14:21
|
|
Posts: 128 |
Thanked: 487 times |
Joined on Oct 2010
@ Novosibirsk, Russia
|
#468
|
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...
sudo -u user someplayer
|
2011-06-28
, 14:23
|
|
Posts: 128 |
Thanked: 487 times |
Joined on Oct 2010
@ Novosibirsk, Russia
|
#469
|
dbus-send --type=method_call --dest=ru.somebody.someplayer / ru.somebody.someplayer.toggle
dbus-send --type=method_call --dest=ru.somebody.someplayer / ru.somebody.someplayer.stop
|
2011-06-28
, 14:54
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#470
|
Tags |
music player, nokia n900, someplayer |
|
Donate for SomePlayer