[kde-linux] Removable media detection and configuration
Jérôme ARNAUD
jerome.arnaud at comcast.net
Tue Jul 4 22:44:59 UTC 2006
Hello,
I use KDE3.5.2, on Gentoo Linux, on PPC arch.
Basically, I want to be able to launch the application of my choice upon CD
insertion.
I followed this howto:
http://forums.gentoo.org/viewtopic-t-415756-highlight-howto+dbus+hal+mount.html
So now, when I insert a CD, a popup appears asking what I want to do.
I want to do several thing:
1- First, if it is a blank CDR, I want to launch K3B.
So, I added an entry to the Removable Media popup:
~/.kde/share/apps/konqueror/servicemenus/Graver_un_CD.desktop:
[Desktop Action Graver un CD]
Exec=k3b
Icon=k3b
Name=Graver un CD
[Desktop Entry]
Actions=Graver un CD
ServiceTypes=media/blankcd
If I insert a blank CD, then the K3B option is given to me. When I double
click on it, I have a error message from KIOExec that says "Malformed URL"
and K3B is not launched.
2- Second, when I insert a DVD, I want to launch xine. So I added a new entry:
~/.kde/share/apps/konqueror/servicemenus/Lire_le_DVD.desktop:
[Desktop Action Lire le DVD]
Exec=xine dvd:/
Icon=xine
Name=Lire le DVD
[Desktop Entry]
Actions=Lire le DVD
ServiceTypes=media/dvdvideo,media/dvd_unmounted
When I insert a DVD, the Removable Media popup is displayed with the Xine
option. When I double click this option, I have an error from KIOExec saying
(translation from french): "/media/hdc is a directory, a file was expected"
and Xine is not launched. Also, the DVD is detected as a non-mounted DVD-ROM
but it is in fact a DVD-VIDEO. I can see konqueror trying to mount it when I
click on the Xine option.
3- finally, when I insert a CDROM and choose the option to open it in a new
window, it is mounted at /media/hdc. I want it mounted at /media/cdrom (hell,
UDEV makes a /dev/cdrom device, why does kde go to /dev/hdc ?).
I think that what I want to achieve is the very basis of why this Removable
Media thing has been done.
Can someone help me fix this ?
Thanx
More information about the kde-linux
mailing list