How can I get Rhythmbox to open when I insert an audio CD?

Asked by Ron Rhodes

I have reported bug #318183 Rhythmbox opens "Not Playing" after upgrade. This has been designated a duplicate of bug #299395 rhythmbox doesn't go directly to track-listing when autostarted by inserting an audio cd.

In bug #299395 Jackflap wrote on 2008-11-24:
"Actually, I've just realized that this bug is within Ubuntu, and not rhythmbox itself.

Running 'rhythmbox file:///dev/scd0' starts up rhythmbox with the selected pane on the Audio CD as expected.

This means that the issue isn't with rhythmbox, but with the way Ubuntu auto-runs the cd. This is easily fixable by running a manual command, entering the rhythmbox command above and setting that as the default action when a cd is inserted".

So by opening a terminal and running the command I can play an audio CD.

My question is how do I do the "easily fixable" bit of running a manual command, entering the rhythmbox command above and setting that as the default action when a cd is inserted?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Octavio (torn-acl) said :
#1

Inside Nautilus, use the menu on top to select "Edit"->"Preferences". You should know be at the "File Management Perferences" dialog. From there choose the "Media" tab -> "Cd Audio' drop down menu" -> "Open with other Application" -> "Use custom command" and enter the command there.

Revision history for this message
Ron Rhodes (owdronrhodes) said :
#2

Your solution didn't work. Entering either "rhythymbox file:///dev/scd0" or just "file:///dev/scd0" resulted in the warning "Could not find 'rhythmbox' or 'file:///dev/scd0'".

Any other suggestions?

Revision history for this message
Tom (tom6) said :
#3

Hmmm, i don't use rhythymbox but generally when an application doesn't behave i follow the old Windows way of uninstalling and reinstalling. In linux that means getting the latest version - no need to upgrade. Sometimes it doesn't work and i'm forced into losing all my preferences and settings by doing a complete removal (which Windows never seemed to manage).

Anyways, as i said i don't use rhythymbox so it may not be an answer worth persuing but i thought i'd drop it in as there isn't much else i can suggest, sorry
Regards from
Tom

PS im finding i have to do less and less of this drastic type of action as there are fewer problems now i'm used to linux a bit more. Sometimes just finding the right text file to edit helps. Anyway - good luck and happy hunting.

Revision history for this message
Octavio (torn-acl) said :
#4

Try to run the command 'rhythmbox' in your terminal? Does it open up rhythmbox? If it works close rhythmbox and try this in the terminal (make sure you have an audio cd in your cdrom):

 rhythmbox 'file:///dev/cdrom/'

If that works, you can go ahead and use it in the preference menu as described earlier. I'd like to note that while the fix you cited does indeed open up rhythmbox in the correct cd contents pane, it does not automatically initiate playback. At least not for me.

Revision history for this message
Ron Rhodes (owdronrhodes) said :
#5

Tom,
       Thanks for your comments, I tried reinstalling all relevant packages to no avail,
Ron.

Octavio,
       I quote from my question above "So by opening a terminal and running the command I can play an audio CD", which means the command works in a terminal.

       I quote from my reply to your suggestion "Your solution didn't work. Entering either "rhythymbox file:///dev/scd0" or just "file:///dev/scd0" resulted in the warning "Could not find 'rhythmbox' or 'file:///dev/scd0'"", which means neither of the commands work in the "Use custom command" box AS THEY COULD NOT BE FOUND.
Ron.

Revision history for this message
Octavio (torn-acl) said :
#6

Try to input the full path to the rhythmbox executable. In a normal installation it is in the /usr/bin folder, if its not there you can find it with the whereis command in a terminal ('whereis rhythmbox').

/usr/bin/rhythmbox 'file:///dev/cdrom/'

Revision history for this message
Ron Rhodes (owdronrhodes) said :
#7

Didn't work. Entering the full path command in the "Use custom command" box resulted in the warning "Could not find '/usr/bin/rhythmbox'".

Revision history for this message
d1bro (d1bro) said :
#8

only choose rhythmbox and don't enter any filepath, due to nautilus realizes the device already, when u insert the cd.

Revision history for this message
d1bro (d1bro) said :
#9

sorry it should have been an answer.

Revision history for this message
Tom (tom6) said :
#10

If you are still having trouble with this then please post it as a new question. Only the most recent questions tend to get looked at so posting/reposting a question just before america arrives online gives the best chance of getting a good few answers.

If the problem has been resolved then please follow the link to the forum thread and mark it as Solved.

Good luck and many regards from
Tom :)

Can you help with this problem?

Provide an answer of your own, or ask Ron Rhodes for more information if necessary.

To post a message you must log in.