summaryrefslogtreecommitdiffstats
path: root/src/gui/platform
diff options
context:
space:
mode:
authorNicolas Fella <nicolas.fella@kdab.com>2021-07-10 16:59:55 +0200
committerNicolas Fella <nicolas.fella@kdab.com>2021-07-28 16:37:10 +0200
commit74a91773afa395ee0cefcdcd25bb3947b60a0b63 (patch)
treeab5a02d2b47e1d15f5284551790fa31c20d7283b /src/gui/platform
parent4c0f81490ba0c4ec75786498332fb355f301b9cf (diff)
[qgenericunixservices] Consider kde-open5 for opening URLs
When xdg-open is not found the KDE-specific kfmclient is considered. That however is part of Konqueror and may not be present as well. Plasma offers another option, kde-open5, which should be considered before falling back to webbrowsers. This is particularly for non-http URLs like tel: where opening in a webbrowser is not wanted. Pick-to: 6.2 6.1 5.15 Change-Id: I2b606562e21568fbe43f4593de67a1d467918cc4 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/gui/platform')
-rw-r--r--src/gui/platform/unix/qgenericunixservices.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/platform/unix/qgenericunixservices.cpp b/src/gui/platform/unix/qgenericunixservices.cpp
index e7b9ae3368..e52a0dbc8e 100644
--- a/src/gui/platform/unix/qgenericunixservices.cpp
+++ b/src/gui/platform/unix/qgenericunixservices.cpp
@@ -142,6 +142,8 @@ static inline bool detectWebBrowser(const QByteArray &desktop,
}
if (desktop == QByteArray("KDE")) {
+ if (checkExecutable(QStringLiteral("kde-open5"), browser))
+ return true;
// Konqueror launcher
if (checkExecutable(QStringLiteral("kfmclient"), browser)) {
browser->append(QLatin1String(" exec"));