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.

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.

Thanks

share|improve this question

1 Answer 1

up vote 2 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
1  
found it... added this icon here: openclipart.org/image/250px/svg_to_png/34543/drive-optical.png, looks damn cool :D –  jsandhu Jan 19 '12 at 11:35

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.