Getting KDE to autoplay DVDs

I finally figured out how to get KDE to launch Xine when you pop in a video DVD. Create a new action for DVD Video Disk and call it something like Play DVD. For the launch command (this is the tricky part) use something the following:

xine dvd://1 #%u It seems that KDE passes the mount url to the command regardless. You'll get errors like "KIOExec error, /media/cdrom is a folder, but a file was expected." So you fake it out by putting the url (%u) after the #. So it basically runs the Xine command and then a comment: the URL. Sort of a hack, but it works great.
Leave A Reply - 2 Replies
Replies
pdp 2007-06-14 08:27am - No Email - Logged IP: 87.96.165.172

This is great! I have used it with the vlc player, it works exactly the same. I experienced the same KIOExec error.

vlc dvd:// #%u

Thanks, pdp

Slavko 2008-03-06 11:46pm - No Email - Logged IP: 85.135.130.59

Thank you for this :-)

All content licensed under the Creative Commons License