[kde-linux] Removable media detection and configuration



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
___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.



Relevant Pages

  • Re: multi camera portable remote studio desktop production stuff and questions
    ... > approx 16-20 hours of raw video footage of our model rocket launches, ... > fiddling with launch equipment and all the other tstuff that needs to get ... > currently I have a belkin USB cature dongle ad just got a LG GSA 4166 DVD ... I'm not familiar with that LG drive or DVD RAM drives in ...
    (rec.video.desktop)
  • Re: multi camera portable remote studio desktop production stuff and questions
    ... >> approx 16-20 hours of raw video footage of our model rocket launches, ... >> fiddling with launch equipment and all the other tstuff that needs to get ... >> currently I have a belkin USB cature dongle ad just got a LG GSA 4166 DVD ... actually, been using the roxio stuff for most of my work, because it works. ...
    (rec.video.desktop)
  • Toshiba hints at HD DVD launch delay.
    ... Toshiba may not launch HD DVD products until 2006, ... Toshiba and other HD DVD backers have for some time pegged late 2005 ... format in the US and Japan. ...
    (alt.video.dvd)
  • (More) Help! Stuff
    ... The DVD is now in stores worldwide and available at the Beatles official shops - just click here for details and links to buy! ... For the launch of the DVD we have produced a two T-shirts designs and a red and white striped scarf. ... Beatles Flag Raised By Ringo Starr Atop Landmark Capitol Records Tower in Hollywood ...
    (rec.music.beatles)
  • Re: DWM 360
    ... Aside from the guest appearances in character on Blue Peter (scenes in Blue ... And re the signing issue, frankly I don't care if he doesn't attend Tenth ... that sort of launch for a DVD set is not ...
    (rec.arts.drwho.moderated)