This forum has been archived. All content is frozen. Please use KDE Discuss instead.

ping or test if amarok is playing?

Tags: None
(comma "," separated)
dontodd
Registered Member
Posts
1
Karma
0

ping or test if amarok is playing?

Sat May 27, 2006 1:51 pm
I'm using Amarok 1.3.7 on Ubuntu64 with gnome. I'm writing a nautilus script that will send files to the user-defined default media player. If the player is not running, it starts playing the first track; if the player is running, it adds the tracks to the queue. I'd like to be able to test if Amarok is *playing* so if it's not actually playing (even if it's running), it starts playing the tracks.

The test for if it's running is just
Code: Select all
if [ "$isRunning" == "false" ] ; then
$player "$arg"
else
$player -e "$arg"
fi


Can this be done?

Thanks!
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
investigate dcop - it does a lot of this, if not all.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]