Page 1 of 1

need to put "Eject cd-rom" icon on desktop

Posted: Wed Aug 28, 2013 7:53 am
by medteam
Hi

I'm preparing workstation for casual "non computer" older people (they will be using cd-rom's).
It's to complicated for user to start File Manager, locate cd-rom and then click small "Eject"

I need to put "Eject cd-rom" icon on desktop

The bigger problem is that cd-rom is automatically mounted via "gvfs ?" and simple "eject" command doesn't umount -> still "mount | grep /dev/sr0" show label cd-rom
Also if hardware button on cd-rom drive is preset - "mount | grep /dev/sr0" show label cd-rom
This should be done via some applet?

OpenSUSE 12.3 with Gnome & LXDE

I had google worldwide, and still nothing ..
please help

Regards
Mark

Re: need to put "Eject cd-rom" icon on desktop

Posted: Thu Aug 29, 2013 8:59 pm
by rokytnji
I guess simply typing

Code: Select all

eject
in terminal is not viable in Open Suse > That command works for me opening cd tray in AntiX LXDE, For/If I needed a Icon. I would make a text file and make it executable and assign a Icon to it. If it works in Unity. It should work in LXDE also. in my opinion.
http://linux.about.com/library/bl/open/ ... ie5.18.htm
I don't do rpm based distros either.

http://forum.lxde.org/viewtopic.php?f=8&t=533

Re: need to put "Eject cd-rom" icon on desktop

Posted: Tue Sep 03, 2013 10:00 am
by medteam
Hi,
first of all, I would like to big thank you for reply :)

Unfortunately, my problem is related to (as I wrote before) to "gvfs" gnome file system.
Eject is not compatible with "gvfs" of FUSE

Maybe there is some "eject" applet?

Regards
Mark

Re: need to put "Eject cd-rom" icon on desktop

Posted: Wed Sep 04, 2013 6:22 pm
by drooly
i just searched "eject cdrom gvfs" and this looks like it could help:
http://igurublog.wordpress.com/downloads/script-devmon/
i don't know if it conflicts with something already installed, but it will tell you when you try to install.

apart from that, do you know how to create a .desktop file on your desktop that executes the appropriate command?

ps: i didn't quite understand if your problem relates to lxde or gnome?

Re: need to put "Eject cd-rom" icon on desktop

Posted: Mon Sep 09, 2013 3:17 pm
by Bob E
Is the OP still interested in achieving this? I just put shortcuts on my panel for "open" and "close", but they can be on the desktop as well (and in the menu). See my screenshot.

Re: need to put "Eject cd-rom" icon on desktop

Posted: Mon Sep 09, 2013 6:37 pm
by Rex Bouwense
I don't know if the OP is still interested but I am sure that there is someone out there who is interested so please share your solution with us.

Re: need to put "Eject cd-rom" icon on desktop

Posted: Tue Sep 10, 2013 1:37 am
by Bob E
Rex Bouwense wrote:I don't know if the OP is still interested but I am sure that there is someone out there who is interested so please share your solution with us.
I made a tutorial and posted it in the "How To" section of the forum.
http://forum.lxde.org/viewtopic.php?f=49&t=36444

I made it "newbie-frendly" so even new Linux users can easily accomplish this.

Re: need to put "Eject cd-rom" icon on desktop

Posted: Mon Dec 30, 2013 1:12 pm
by medteam
Rex Bouwense wrote:I don't know if the OP is still interested but I am sure that there is someone out there who is interested so please share your solution with us.
sorry for delay, to close the topic, finally I found "sort of" solution
You create icon on Desktop, that point to program.sh

in program.sh add as last line

program-x86.bin
#eject procedure
udisksctl unmount -b /dev/sr0 ; sleep 3 ; eject -v

So when user close program, cdrom will be unmount and ejected
Thank all for your help, especially for @drooly -> interesting stuff

Best regards
Mark