From 5f1c33b35d74828e808ebcb292b59b2f252c3a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 1 Apr 2022 16:34:12 +0200 Subject: If desktop file does not include X-TDE-Protocols property, use X-KDE-Protocols property to limit the use of TDEIO protocols for non-TDE programs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolves issue TDE/tdebase#224. Signed-off-by: Slávek Banko --- tdeio/tdeio/krun.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tdeio/tdeio/krun.cpp b/tdeio/tdeio/krun.cpp index 402b339b0..8876dc2ef 100644 --- a/tdeio/tdeio/krun.cpp +++ b/tdeio/tdeio/krun.cpp @@ -701,6 +701,10 @@ static KURL::List resolveURLs( const KURL::List& _urls, const KService& _service // Check which protocols the application supports. // This can be a list of actual protocol names, or just TDEIO for KDE apps. TQStringList supportedProtocols = _service.property("X-TDE-Protocols").toStringList(); + if (supportedProtocols.isEmpty()) + { + supportedProtocols = _service.property("X-KDE-Protocols").toStringList(); + } KRunMX1 mx1( _service ); TQString exec = _service.exec(); if ( mx1.expandMacrosShellQuote( exec ) && !mx1.hasUrls ) { -- cgit v1.2.3