Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.4.4 OS: Linux I just noted that Kaffeine loads media:/ urls as local files (just well), but doesn't do the same with system:/media/ urls. So I changed a bit the file src/playlist.cpp: *** playlist.cpp 2005-10-26 15:10:33.000000000 +0200 --- playlist.cpp.new 2005-11-02 14:44:23.000000000 +0100 *************** *** 509,517 **** { mrl = MRL(urls[i]); ! if (mrl.kurl().protocol() == "media") { - QString url(mrl.kurl().prettyURL()); QString mediaName(url.mid(7)); int slash = mediaName.find("/"); QString filePath(mediaName.mid(slash)); --- 509,520 ---- { mrl = MRL(urls[i]); ! QString url(mrl.kurl().prettyURL()); ! if (url.startsWith("system:/media/")) ! url.replace(QRegExp("^system:/media/"),"media:/"); ! ! if (url.startsWith("media:/")) { QString mediaName(url.mid(7)); int slash = mediaName.find("/"); QString filePath(mediaName.mid(slash)); Simply if the url start with "system:/media/", change it with "media:/"; then if the url starts with "media:/", continue normally. It works perfectly in my system. I hope this will help ;) Thank you and good bye
Created attachment 13249 [details] The patch file Here is the patch for playlist.cpp
Please use diff -u when creating diffs :-) This patch doesn't solve the underlying problem of hardcoding paths. Please see the latest k3b, which solves this bug correctly, by detecting UDS_LOCAL_PATH entries.
This patch can be used as a workaround until you get a better solution, so I haven't to manually modify the path in konqueror to watch a movie from the cd... imho ;) However today or tomorrow I'll get on this to solve the problem. I'm working to a patch for kmplayer too (that doesn't read ANY kioslave...) Thank you and bye
Emunuele: Hey, what's up with these patches ? :) Btw, on my Gentoo KDE 3.5 system it refuses to open a media:/* files, too. Strange :)
Hi, I also tried to create a patch :) If it works for you I can commit it.
Created attachment 15393 [details] handle local protocols (eg media:/, system:/)
BTW, this looks related to 124433.
*** Bug has been marked as fixed ***.