Parole and Mandriva script
Ali Abdallah
aliov at xfce.org
Wed Nov 25 08:31:32 CET 2009
patrick.2 wrote:
> Hello,
>
> Mandriva have a script to lauch some programme when media is inserted.
>
>
> #!/bin/sh
> #---------------------------------------------------------------
> # Project : Mandriva Linux
> # Module : user-scripts
> # File : audio_cd.script
> # Version : $Id: audio_cd.script 244625 2008-09-02 12:54:44Z blino $
> # Author : Frederic Lepied
> # Created On : Fri Jan 30 17:01:34 2004
> # Purpose : launch an audio CD reader when an audio CD is inserted
> #---------------------------------------------------------------
>
> . /usr/share/dynamic/functions.script
>
> if under_gnome; then
> launch sound-juicer --play --device="$DEV"
> launch gnome-cd --unique --play --device "$DEV"
> launch totem "$DEV"
> fi
>
> if under_xfce; then
> launch exaile --play /dev/sr0 --start-minimized
> fi
>
> launch kscd --start "$DEV"
> launch gnome-cd --unique --play --device "$DEV"
>
> echo "No application to play an audio CD"
>
> # audio_cd.script ends here
>
>
> what is the command to start Parole, in place of exaile?
>
If you are reading an audio disc then the command is:
launch parole cdda:// --device /dev/sr0 (for the upcoming new beta
version), for the old alpha versions (parole cdda://) since it didn't
have a device command line option.
> Thanks.
>
>
>
Cheers.
>
>
More information about the Xfce
mailing list