Audio CD URI?

Dear Lazyweb,

I’d like to configure GNOME to start up rhythmbox when an audio CD is inserted, and start playing this CD. I see that there is a program named rhythmbox-client which takes the commandline argument –play-uri to play whatever I tell it to. However, I can’t seem to find any documentation or whatever about an URI for audio CDs. So, is there an URI for audio CDs in gnome-vfs and if yes, what is it?

Advertisements

6 Responses to Audio CD URI?

  1. Alexander Larsson says:

    Try something like cdda:///dev/hdc

  2. roman says:

    No sorry, doesn’t work here (Ubuntu Edgy, Gnome 2.16 etc). Neither Nautilus nor Rhythmbox know of such an URI.

  3. Mario says:

    Hello Roman!

    Try this tip: open GConf, and search for this key: /desktop/gnome/volume_manager/autoplay_cda_command

    There is a menu to do this anyway, should be “System->Preferences->Removable Devices” (or such, it has a CD icon on my Fedora and is the last entry, in case of trouble, the command line is “gnome-volume-properties”)

    Let me know!

  4. Christian Neumair says:

    Rhythmbox just needs support for dealing with CD device nodes that are passed as parameter:

    http://bugzilla.gnome.org/show_bug.cgi?id=401091

  5. Jan Pilar says:

    Hi there.

    After a bit of command line fun I’ve found out the following:

    rhythmbox-client –play-uri=cdda://1#/dev/scd0

    On my Feisty install (HP500 notebook) this command starts to play the first CD track if Rhythmbox is already running. Changing the number inside the command plays a corresponding track number. So much for a workaround.

    Other problem is how to join the two commands (rhythmbox + rhythmbox-client) together (bash script?). Unfortunately I’m not so skilled yet to write it šŸ˜¦

    Hope this helps a bit šŸ˜‰

  6. Nick says:

    Well, it isn’t particularly elegant, but for now the following simple bash script should do the trick (works for me with 7.10):

    #!/bin/bash

    rhythmbox &

    sleep 5

    rhythmbox-client –play-uri=cdda://1#/dev/scd0

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: