I would like to have "Play/Pause" "Next" and "Previous" buttons in the quicklist for my Rdio.desktop "web app."
The web app can be created either from Chrome (by going to menu > tools > create application shortcuts) or through Unity's web app interface. Either of these methods puts a .desktop file in
/home/user/.local/share/applications/ which opens a new browser window.
In case you use chrome, the result is:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Name=Rdio Exec=/opt/google/chrome/google-chrome --app=http://www.rdio.com/ Terminal=false Icon=/home/user/icons/rdio.png Type=Application Categories=Network;WebBrowser; StartupWMClass=www.rdio.com
In the case you use Unity's web app feature, the result is:
[Desktop Entry] Name=Rdio Type=Application Icon=Rdio-www.rdio.com MimeType= Actions=S0;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10; Exec=unity-webapps-runner -n 'UmRpbwA=' -d 'www.rdio.com' %u
I want to add something like the following to either .desktop file (preferably the chrome one because Unity web apps don't work correctly) so that I can control playback with a right click:
X-Ayatana-Desktop-Shortcuts=PlayPause;Next;Previous; [PlayPause Shortcut Group] Name=PlayPause Exec=google-chrome (some arguments here?) rdio.com/?magic_url=play_pause TargetEnvironment=Unity #... (and similarly for next and previous)
However, I don't know what URLs to give it, and how to make it not open new windows but stay in the already open one!