Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: HOWTO: Unmount & eject CD-Rom with a launcher on panel

  1. #11
    Join Date
    Oct 2005
    Location
    Michigan
    Beans
    14
    Distro
    Kubuntu Breezy 5.10

    Re: HOWTO: Unmount & eject CD-Rom with a launcher on panel

    Thanks, worked like a charm for me

  2. #12
    Join Date
    Jun 2005
    Location
    Australia
    Beans
    17
    Distro
    Ubuntu 6.06

    Re: HOWTO: Unmount & eject CD-Rom with a launcher on panel

    Fantastic! Worked first time.

  3. #13
    Join Date
    Mar 2007
    Location
    Rio de Janeiro, Brazil
    Beans
    3
    Distro
    Ubuntu 6.10 Edgy

    Lightbulb Re: HOWTO: Unmount & eject CD-Rom with a launcher on panel

    Thanks. It's helped me a lot!
    But I had to adjust some things on this script to make it run error free on my system. Maybe it's related to the version of bash and zenity, as my pc runs Ubuntu 7.04 Feisty.
    What I had to change:

    1. zenity syntax

    Code:
    Original code:
    zenity --error --title "CD-Rom eject" --info-text "$1"
    
    Changed code:
    zenity --error --title="CD-Rom eject" --text="$1"
    2. bash test syntax (it didn't work with ==, but just with a single =)

    Code:
    Original code:
    if [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
    
    Changed code:
    if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
    Code:
    Original code:
    if [ "$1" == "-z" ] || [ "$1" == "--zenity" ] ; then
    
    Changed code:
    if [ "$1" = "-z" ] || [ "$1" = "--zenity" ] ; then
    I found this script on https://help.ubuntu.com/community/EjectCDLauncher but was unable to report those suggestion there. If you can, please include those changes there, so it can be used by others. It took me some time checking the script until I found what to do.

    Thanks again!

  4. #14
    Join Date
    May 2007
    Location
    Australia
    Beans
    53

    Re: HOWTO: Unmount & eject CD-Rom with a launcher on panel

    Sorry to say that it did not work for me with my laptop. It did unmount but did not eject. I also did not get any zenity notification(s) either.

  5. #15
    Join Date
    Dec 2009
    Beans
    3
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: HOWTO: Unmount & eject CD-Rom with a launcher on panel

    Thank you, it made eject-button on my dell studio-xps really work. Before it only functioned if the disk was unmounted already.

    Gregor
    Ubuntu Studio on Dell Studio-xps

Page 2 of 2 FirstFirst 12

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
  •