Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

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

eject

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]
Name=Eject
Exec=eject
Icon=cdrom_unmount
Terminal=false
Type=Application
StartupNotify=false

(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

 
discard

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.