CplayAddExternal

Main Page | Recent changes | Random | Special
Edit this page | Page history | Discuss this page
 


Page type: Uncategorised

Patch to make it possible to add files/playlists to Cplay externally (e.g. from clicking a file in Nautilus): http://junk.mikeasoft.com/cplay-addexternal.diff

or for the slightly different Ubuntu version: http://junk.mikeasoft.com/cplay-addexternal-ubuntu.diff

Files or playlists can be added through sending the string "add /path/to/filename" to /var/tmp/cplay_control (or /tmp/cplay_username/cplay_control for the Ubuntu version.)

Example: echo "add /home/mike/music/test.m3u" > /var/tmp/cplay_control


Adding .m3u files by double-clicking:

Save the following to a file and chmod r it:

#!/bin/bash

echo "add $1" > /var/tmp/cplay_control

In Nautilus (or other file browser to your liking) choose to "open with" this script for .m3u extensions.

Disclaimer: Someone should edit the above script to work properly since I've never scripted in bash before :) - Bluec