Summary: | URLs doesn't open if xdg-desktop-portal isn't started | ||
---|---|---|---|
Product: | [KDE Neon] neon | Reporter: | Ilya Fedin <fedin-ilja2010> |
Component: | Snaps | Assignee: | Scarlett Moore <sgmoore> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | nate, neon-bugs, null, sgmoore |
Priority: | VHI | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ilya Fedin
2020-04-28 06:03:52 UTC
KDE upstream bug Oops, link to the Qt bug: https://bugreports.qt.io/browse/QTBUG-81597 Even if I manually start xdg-desktop-portal-kde, this still happens for me. :( Is this 100% an upstream Qt issue, or is there anything we can do on the KDE side? Did the KDE snap and flatpak packages just suddenly get an updated Qt to trigger this issue or something? The bug I'm describing here was fixed on snapd side with https://github.com/snapcore/snapd/commit/d644659aa7f0605d6fcdfd80fa45d1a54bbfda8d long time ago. If anyone is interesting why such kind of issues happen with Qt, but not gtk applications (xdg-desktop-portal is not the only problem here, I've also experienced such a problem with org.freedesktop.Notifications service on MATE systems), that's because glib's GDBusProxy class emits a org.freedesktop.DBus.StartServiceByName which is allowed by snapd, so it happens by the time a gtk application does request, the service is already started. Qt has nothing like this. So I'm wrapping D-Bus calls with StartServiceByName calls in my applications for them to work nicely with snapd. This is still required for any calls except of xdg-desktop-portal as this was fixed only for xdg-desktop-portal from snapd side. But of course it doesn't mean opening files works with Qt and snap as there's still https://bugreports.qt.io/browse/QTBUG-83939, it's another bug though. |