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

Please post all general support questions for LXDE here.
Locked
medteam
Posts: 3
Joined: Wed Aug 28, 2013 7:20 am

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

Post 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
rokytnji
Posts: 131
Joined: Mon Jun 13, 2011 10:45 pm
Location: pecos.tx
Contact:

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

Post 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
Amrel RT 786ex 1.6ghz, 512MB ram , AntiX 8.5 core, Biker Linux user # 475019
Lead,Follow, or get the heck out of the way
My AntiX LXDE Install
medteam
Posts: 3
Joined: Wed Aug 28, 2013 7:20 am

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

Post 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
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

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

Post 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?
Bob E
Posts: 72
Joined: Wed Oct 12, 2011 1:37 am

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

Post 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.
Attachments
CD Open Close buttons.jpg
(331.22 KiB) Not downloaded yet
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

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

Post 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.
Rex
Bob E
Posts: 72
Joined: Wed Oct 12, 2011 1:37 am

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

Post 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.
medteam
Posts: 3
Joined: Wed Aug 28, 2013 7:20 am

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

Post 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
Locked