Productive Linux


 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Don't have an account?
Sign up to
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/ %s

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

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

Comments disabled