Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have CD/DVD icon on the launcher by default (regardless of whether CD/DVD is in the tray or not)?

I have friends who would love to switch to Ubuntu, but Ubuntu does not seem to have drivers for special buttons on the laptop, like the one needed to eject the CD/DVD tray. They own one of those mini laptops which have a CD/DVD tray, but no button on the tray to eject it.

share|improve this question
up vote 2 down vote accepted

If you want to eject CD/DVD drives, you can create a launcher to the following command:


and lock it to Unity launcher. This works if the tray is empty, too.

Creating a launcher

Create a new text file with the following contents:

[Desktop Entry]

(you can replace cdrom_unmount with media-eject or any icon you want)

and name it Eject.desktop. Right click that file, select "Permissions" and check "Allow executing file as program". Then you can drag it to the Unity Launcher, and get something like this:

Eject icon in Unity Launcher

Just click on it and the tray will open.

It's not possible to show Unity CD/DVD drive icons if there is no disc in the tray, so this is the best way to get a Unity eject icon.

share|improve this answer
The drives for CD/DVD won't display with that option – Anwar Shah Oct 11 '12 at 14:47
@nastys , The drives for CD/DVD don't display with that option. – Aki Oct 11 '12 at 15:55
Post updated... – nastys Oct 11 '12 at 18:46
@nastys It's not clear to me where you got that option from. Ubuntu 12.10 does not seem to have it. After creating the launcher, will the icon remain on the launcher panel even when CD/DVD is ejected? The point is to open the tray to place the CD/DVD in. Once the tray already has CD/DVD, its easy to eject it from multimedia applications. – Aki Oct 11 '12 at 19:54
Post updated, just create a new launcher to "eject" and lock to Unity launcher. – nastys Oct 13 '12 at 22:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.