Results 1 to 6 of 6

Thread: cdtray gui control

  1. #1
    Join Date
    Jan 2007
    Beans
    23

    cdtray gui control

    Hello,

    I just got a new box for my daughter, but the cd front is 'designed' to hide the open/close button. Is there a gnome/unity gui (12.10) that will open/close the cd tray when it is empty?

    Thanks
    Neil

  2. #2
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: cdtray gui control

    Not sure if there is a GUI tool, but what about the eject tool?

  3. #3
    Join Date
    Jan 2007
    Beans
    23

    Re: cdtray gui control

    Sorry I should have added, she is only young and doesn't understand the terminal yet. I need to make it really easy so I don't get called every time she wants to change a cd

  4. #4
    Join Date
    Sep 2006
    Location
    Devon, England
    Beans
    69
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: cdtray gui control

    Have you tried assigning a spare key (like the "0" in the keypad) to the eject task? Does it in one hit without the need for mouse etc.

    Go to system settings > keyboard > shortcuts > sound & media; assign your hot-key to 'Eject'
    OR
    write a macro invoking 'eject -T' and assign it to a hot-key using xmacro or similar

    Cheers, Dad

  5. #5
    Join Date
    Oct 2012
    Beans
    182

    Re: cdtray gui control

    Adding to BigJules method, you can also create a launcher on desktop with eject command for ejecting and closing the cd tray. On laptops, the closing usually does not work because of the manual close mechanism of cd trays.

    Create a new file on your desktop using any text editor and put the following code in it
    Code:
    [Desktop Entry]
    Name=CD
    Exec=eject -T cdrom
    Terminal=false
    Type=Application
    Close the file and rename it "CD.desktop"
    change its permissions to Execute or in terminal
    Code:
    chmod 0700 ~/Desktop/CD.desktop
    This launcher will toggle CD tray. If closed, it will open the tray. If open, it will close the tray

  6. #6
    Join Date
    Jan 2007
    Beans
    23

    [SOLVED] Re: cdtray gui control

    Thank you, two great ideas. I will try both and see which one works best for her.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •