Autoplay CDs in Xfce

July 9, 2006 at 11:12 pm | Posted in tips and tricks, xubuntu | 1 Comment

One feature I miss in Gnome is autoplaying CDs. Here’s how to get it back:

1) Open a terminal (Xfce Menu > System > Terminal), and install ivman (a program which manages automounting/autoplaying devices):

sudo apt-get install ivman

2) Edit ivman’s actions config file:

mousepad .ivman/IvmConfigActions.xml

3) Paste the following in this file:

<?xml version="1.0" encoding="UTF-8"?>
<ivm:ActionsConfig version="0.2" xmlns:ivm="">
<ivm:Match name="hal.volume.disc.has_audio" value="true">
<ivm:Option name="exec" value="beep-media-player -p /media/cdrom0" />

(Replace beep-media-player with whichever media player you prefer.) Save the file and exit.

4) Load ivman when you log in:

sudo mousepad /etc/xdg/xfce4/xinitrc

After the first line (the line that says, #!/bin/sh), paste the following:

ivman-launch &

Save the file, and log out and in. Now you can automatically play your CDs when you put them in!


1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Thanks again for the info! I had no idea about ivman. Anyway, if anyone else it trying to get this to work and has been unsuccessful, don’t copy and paste the contents for IvmConfigActions.xml given and instead type it in by hand. The reason is because ivman will parse fail from the quote characters not being ASCII (don’t know why, since the encoding explicitly states it’s UTF-8. Replace them with 0x22). Also, make sure to have the line at the end of the file. What my IvmConfigActions.xml currently looks like:

    Besides that, I also had to go to Applications > Settings > Autostarted Applications, and add /usr/bin/ivman to the list. Works like a charm now!

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

Blog at
Entries and comments feeds.

%d bloggers like this: