Registered Member
|
I'm trying to rewrite some scripts I have for Amarok to work on Amarok2. One of the things I'm getting stuck on is loading a playlist.
In Amarok1 I used to do something like this: dcop amarok playlist clearPlaylist; dcop amarok playlist playMedia "$playlist"; For Amarok2 I tried: qdbus org.kde.amarok /TrackList org.freedesktop.MediaPlayer.AddTrack "$playlist" 1 But this only seems to work for adding single tracks. It won't load an m3u file. Also it won't clear the playlist which is something I would like. Giving up on dbus I've also tried: amarok --load "$playlist" This should do what I want, but instead it gives a nonsensical error saying "Amarok is already running!". Amarok is of course already running, I'm not sure why it thinks that's a problem. Anyone have any idea how to get this working? |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]