From 3d3e77773df70317267c2d471c37e9374256590d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 3 Jan 2021 21:52:05 +0900 Subject: krun: prevent media:/ or system:/media urls to be replaced by their respective /media/... path. Signed-off-by: Michele Calgaro --- tdeio/tdeio/krun.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdeio/tdeio/krun.cpp b/tdeio/tdeio/krun.cpp index 89c84952f..329199da9 100644 --- a/tdeio/tdeio/krun.cpp +++ b/tdeio/tdeio/krun.cpp @@ -724,7 +724,8 @@ static KURL::List resolveURLs( const KURL::List& _urls, const KService& _service const KURL url = *it; bool supported = url.isLocalFile() || supportedProtocols.find( url.protocol().lower() ) != supportedProtocols.end(); kdDebug(7010) << "Looking at url=" << url << " supported=" << supported << endl; - if ( !supported && KProtocolInfo::protocolClass(url.protocol()) == ":local" ) + if ( !supported && KProtocolInfo::protocolClass(url.protocol()) == ":local" && + !url.url().startsWith("media:/") && !url.url().startsWith("system:/media")) { // Maybe we can resolve to a local URL? KURL localURL = TDEIO::NetAccess::mostLocalURL( url, 0 ); -- cgit v1.2.1