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

I am looking for a Gnome panel applet which can open and close the dvd/cd tray , I am on Ubuntu 11.04 and use Gnome Classic desktop environment.


share|improve this question
up vote 3 down vote accepted

I do not know any applet capable of triggering the cd tray, but you can add a custom launcher as applet.

  1. Choose "Custom Application Launcher" from the "Add to Panel" menu.
  2. Set "Type:" to "Application in Terminal"
  3. Choose a name.
  4. Write eject -T in the "Command" field.
  5. Click OK and try it.

This should work, but I could not test it, since I do not have a cd drive.

For detailed information about this command, type man eject in a terminal.

share|improve this answer
This closes the tray if* it is open, I need an applet that can do both, like open the tray if it close or close it if is open? – jsandhu Jan 19 '12 at 9:41
Sorry, try an uppercase "T": eject -T – jasperado Jan 19 '12 at 9:57
This works :), Thanks a lot!! – jsandhu Jan 19 '12 at 11:11
wonder where I can find an icon for it... – jsandhu Jan 19 '12 at 11:17
found it... added this icon here:, looks damn cool :D – jsandhu Jan 19 '12 at 11:35

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.