MPRIS and Natty Launcher

General discussions
Locked
mekanix
Posts: 210
Joined: Wed Sep 29, 2010 11:20 pm

MPRIS and Natty Launcher

Post by mekanix »

Hi! I was thinking to try adding commands (such as play/stop, pause, skip, and so on) in the context menu of guayadeque icon in unity launcher.

I found all commands here http://xmms2.org/wiki/MPRIS excepts the Next/Prev Album how can I send these message through MPRIS?
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

MPRIS and Natty Launcher

Post by anonbeat »

This will be the same as Next Prev but with shift pressed.
mekanix
Posts: 210
Joined: Wed Sep 29, 2010 11:20 pm

MPRIS and Natty Launcher

Post by mekanix »

Thanks, but what I was meaning is the org.freedesktop.MediaPlayer.[CommandForNextAlbum?]
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

MPRIS and Natty Launcher

Post by anonbeat »

As you can see in the specification there is no such thing

Thanks for your help
mekanix
Posts: 210
Joined: Wed Sep 29, 2010 11:20 pm

MPRIS and Natty Launcher

Post by mekanix »

Ouch :)
Ok, thanks anonbeat!
Linye
Posts: 33
Joined: Sat Oct 09, 2010 8:01 am

MPRIS and Natty Launcher

Post by Linye »

Let us know how it goes. I'm interested.
mekanix
Posts: 210
Joined: Wed Sep 29, 2010 11:20 pm

MPRIS and Natty Launcher

Post by mekanix »

Ok, I've done something very basic!

guayampris is a simple perl script (I'm completely unable to do even simple things in bash XDD) which determine if guayadeque is in play/pause/stop status. This is important because I've chosen to add a unic Play/Pause item in the icon in unity-launcher, and the mpris signal to send depends on the status.
unzip guayampris in /usr/bin/ folder

Unzip guayadeque.desktop. If it doesn't have the guayadeque icon, probably because this launcher is not trusted, double click on it and when asked, tell that this launcher is trusted, then drag it in unity-launcher to add it. Try with the mouse right-button, it should display the three commands I've added, Click on "keep in launcher" to add this icon to unity launcher.
mekanix
Posts: 210
Joined: Wed Sep 29, 2010 11:20 pm

MPRIS and Natty Launcher

Post by mekanix »

Linye
Posts: 33
Joined: Sat Oct 09, 2010 8:01 am

MPRIS and Natty Launcher

Post by Linye »

Nicely done sir. Even more awesome than others with the next/previous album.

Thanks.
mekanix
Posts: 210
Joined: Wed Sep 29, 2010 11:20 pm

MPRIS and Natty Launcher

Post by mekanix »

you're welcome! :)
Locked