Comment 44 for bug 62430

Revision history for this message
warelock (k36khqu02) wrote : Re: rhythmbox doesn't do anything with .pls given on the command line

SOLVED

I got this to work. Here's the script:

-------

#!/bin/sh
rhythmbox $1
cat $1 | grep ^File | head -1 | awk -F= '{print $2}' | xargs -i rhythmbox-client --play-uri={}

-------

I installed this as /usr/local/bin/rhythmbox-wrapper and made it executable with chmod +x /usr/local/bin/rhythmbox-wrapper. Then, just click the pls file link on the website. When Firefox asks you what to do with the file, specify "other" and point to /usr/local/bin/rhythmbox-wrapper.

Cheers!