Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2296

DesktopServices.openUrl not working on Ubuntu 22.10 since PySide 6.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.5.2
    • PySide
    • None
    • Linux/X11

    Description

      With PySide 6.4.3 this sample was working as expected on Ubuntu 22.10, the openUrl opens file explorer on /tmp folder.

      from PySide6 import QtCore, QtGui, QtWidgets
      import sys
      
      app = QtWidgets.QApplication(sys.argv)
      
      timer = QtCore.QTimer()
      timer.timeout.connect(lambda: QtCore.QCoreApplication.exit(1))
      timer.start(2000)
      
      print(QtGui.QDesktopServices().openUrl(QtCore.QUrl("/tmp")))
      
      sys.exit(app.exec())
      

      But with PySide 6.5.0 the openUrl() does nothing, and still returns True. It also displays this message on stderr

      qt.dbus.integration: Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString)

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            rems Rémy Cocole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes