Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Sound - PLS files
10 May 2004 @ 12:05 BST
by Nomad

I don't agree that the scripts should be set up like this. Far better to put the following two lines in your .mailcap file:

audio/x-scpls; /usr/bin/xmms %s; test=test -n "$DISPLAY"
audio/x-scpls; /path/to/plshandle.sh %s

This will open xmms if X is running, otherwise it will pass the pls data to plshandle.sh, which can simply contain the line:

cat $1 | grep -e '^File1' | cut -f 2 -d = | xargs mpg123
Tags: audio



Comments disabled