Le vendredi 13 mai 2016 16:51:20 UTC+2, M Dammer a écrit :
>
> I am trying to configure XUbuntu to use Clementine as default CD player. 
> Other players like VLC can be configured with MRLs like CDDA:///dev/sr0, 
> but this does not work here. What is the proper command to achive this with 
> Clementine?
>

No easy way to do it.

I'm working under Ubuntu Studio (a distribution based on XUbuntu) and with 
Clementine 1.3.1-228-gd9b3a93.

Note. I've installed udisks in // with udisks2 but I'm not sure it's 
relevant here. It just avoids some non blocking errors in Clementine logs.
Otherwise gvfs-mount has been installed with Clementine.

First create a shell script :

$ sudo tee /usr/bin/audio-cd-launcher.sh << ___EOF
#!/bin/sh
if [ -d "/run/user/\$(id -u)/gvfs/cdda:host=sr0" ]; then gvfs-mount -u 
cdda://sr0/ ; fi
gvfs-mount cdda://sr0/
until [ -d "/run/user/\$(id -u)/gvfs/cdda:host=sr0" ]; do sleep 0.1; done
clementine -a /run/user/\$(id -u)/gvfs/cdda:host=sr0
___EOF

$ sudo chmod a+x /usr/bin/audio-cd-launcher.sh

You may have to adapt the URI (cdda://sr0/) and mounting point 
("/run/user/\$(id -u)/gvfs/cdda:host=sr0") to those of your computer: 
- insert an audio CD
- run Clementine
- select the audio record entry in the Devices tab
- right clic and select "Device properties"

There you get the URI and mounting point to be used.

Last step, from System > Preferences > Removable Drives and Media > 
Multimedia (or something like that), change the command for playing audio 
record to:
       /usr/bin/audio-cd-launcher.sh

That's it.

I haven't found how to:
- show the tracks in a new playlist;
- fetch the tags from a cddb database.

-- 
You received this message because you are subscribed to the Google Groups 
"Clementine Music Player" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to