summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-04-01 16:34:12 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-04-01 16:49:59 +0200
commit5f1c33b35d74828e808ebcb292b59b2f252c3a1a (patch)
tree1c5ba095bef0bd1b60d1539a695b962c788e1270
parenta291f3a0a3fab073c009f77a36745c5c7bd48e9b (diff)
downloadtdelibs-fix/tdeio-protocols-run-non-tde-programs.tar.gz
tdelibs-fix/tdeio-protocols-run-non-tde-programs.zip
If desktop file does not include X-TDE-Protocols property, use X-KDE-Protocols propertyfix/tdeio-protocols-run-non-tde-programs
to limit the use of TDEIO protocols for non-TDE programs. This resolves issue TDE/tdebase#224. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--tdeio/tdeio/krun.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdeio/tdeio/krun.cpp b/tdeio/tdeio/krun.cpp
index 402b339b..8876dc2e 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 ) {