Summary: | QDesktopServices::openUrl() fails on KDE Plasma | ||
---|---|---|---|
Product: | [Applications] Falkon | Reporter: | Kayra Akman <ckakman> |
Component: | general | Assignee: | David Rosca <nowrep> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | ckakman, mgraesslin, private2.6.3 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kayra Akman
2018-05-01 12:31:20 UTC
Works for me. Do you have a browser configured at all? (In reply to Martin Flöser from comment #1) > Works for me. Do you have a browser configured at all? I had only Falkon installed and it was the selected browser. The links in KDE documentation in KHelpCenter was working, so I assumed Falkon was OK. I have also installed Firefox. Now openUrl() works. Regardless of which browser is selected, Firefox is always opened. So it is not a Qt bug after all. It seems another bug report is needed for Falkon not being recognized as a valid web browser although Default Applications > Web Browser "knows" about Falkon. Moving to falkon, maybe the falkon devs have an idea. >I have filed the following bug report for Qt:
I'm using a GTK system and your test application works here. It just triggers gvfs-open, so i think you just have some system misconfiguration (IMO).
(In reply to Moonchild from comment #4) > >I have filed the following bug report for Qt: > I'm using a GTK system and your test application works here. It just > triggers gvfs-open, so i think you just have some system misconfiguration > (IMO). It turned out Falkon was not recognized/reported as a web browser. Please see Comment #2 by me. Can you test with "xdg-open", that's what QDesktopServices::openUrl() should be calling. (In reply to David Rosca from comment #6) > Can you test with "xdg-open", that's what QDesktopServices::openUrl() should > be calling. xdg-open was not available on my system. After installing the xdg-utils package openUrl() successfully opened Falkon. So it was neither Qt, nor KDE Plasma/Falkon issue. I've checked the relevant function in Qt (http://code.qt.io/cgit/qt/qtbase.git/tree/src/platformsupport/services/genericunix/qgenericunixservices.cpp?h=5.9.5#n106) If xdg-open is not available, Qt checks for kmfclient on KDE. If that check fails, it checks for well-known browsers. That last check explains why Firefox was opened although Falkon was the default browser. Maybe Falkon should be added upstream into the "if (desktop == QByteArray("KDE"))" section. xdg-open is standard desktop utility, it should be installed by default with all desktop environments. If not, you should probably report bug to your distribution. |