Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68027

QDesktopServices::openUrl() fails on KDE Plasma

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.5
    • GUI: Workspace
    • None
    • Qt 5.9.5 from Ubuntu main repository
      KDE Plasma 5.12.4
      KDE Frameworks 5.44

    Description

      The following test application fails on Kubuntu 18.04

      #include <QGuiApplication>
      #include <QDesktopServices>
      #include <QUrl>
      
      int main(int argc, char *argv[])
      {
          QGuiApplication a(argc, argv);
          QDesktopServices::openUrl(QUrl("https://www.qt.io"));
      }
      

      with the following error message:

      Unable to detect a web browser to launch 'https://www.qt.io'
      

      The URLs in KDE applications' About dialogs, the links in the Welcome screen of Qt Creator produce the above error message when run from a terminal.

      The same test application works as expected on macOS with Qt 5.9.5.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            ckakman Kayra Akman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes