I've been wondering the very same thing about that eject function. 
For crying out loud, if a user is requesting the CD be ejected just
unmount it already!  You don't exactly need a UI team to hold a
meeting about it.  Oddly enough, on Kubuntu when you select eject it
will unmount it automatically.

Anyhow, being kind of sick of dealing with the silly CD user interface
in KDE I went and wrote up a little shell script of my own for use
with KDE.  I give it a button on kicker, and it works exactly like "it
should"(tm).

No CD in the drive when you click on it, it ejects the drive.
Click with a CD in the drive, and it'll do one of 3 things based on
what is on there:
  1: Data CD will mount to $USER/mnt/cdrom and open Konq to that directory
  2: Audio CD will start up KSCD and start to play the thing
  3: DVD will start up KMPlayer to play it.

If the CD is mounted or the CD/DVD is playing when clicked, this
script will then:
  1: Data CD will unmount.
  2: Audio/DVD will kill the default player.
  3. When ready, it'll eject the disk.

I've been meaning to write up some dialogs to allow for multiple
actions.  Like an audio CD in there might want to play or rip.  I
haven't done anything to account for a blank CD for recording.  Pretty
much only wrote up enough to deal with what I felt was missing for
dealing with optical media.

The one big thing missing that I haven't figured out how to do here is
how to change my little launcher icon on Kicker to show the device
being mounted or not.  Not a big deal with CD's, but I have a similar
script for flash drives.

Anyhow, I thought I'd offer this up to the list, and to see what folks
thought of it.

Later on,

On 4/11/06, James Earl <[EMAIL PROTECTED]> wrote:
> On 4/11/06, Michael Nottebrock <[EMAIL PROTECTED]> wrote:
> > James Earl schrieb:
> > > Hi,
> > >
> > > Is there a way to configure mount, eject, and unmount actions
> > > performed on a cdrom device to use kdesu?
> >
> > No (would be a nice feature though, feel free to file a wish at
> > bugs.kde.org about it!).
> >
> > What you can do is create a mountpoint for the cdrom in your home
> > directory (owned by your normal user) and set vfs.usermount to 1 - this
> > will work with desktop device icons (you might need to hand-edit the
> > .desktop files for them though). If you additionally create fstab
> > entries for those mountpoints, the generic media:/ view in konqueror
> > will work as well.
>
> I submitted the wish:
> http://bugs.kde.org/show_bug.cgi?id=125386
>
> If they don't like my wish, I guess I'll go with your second
> suggestion!  Thanks for your help!
>
> James
> _______________________________________________
> kde-freebsd mailing list
> [email protected]
> http://freebsd.kde.org/mailman/listinfo/kde-freebsd
>


--
"When you come to a fork in the road....Take it"
- Yogi Berra

Attachment: cdmount
Description: Binary data

_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd

Reply via email to