Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0 RC2
-
None
-
Flatpak
-
-
fb981a0954 (qt/qtbase/dev) fb981a0954 (qt/tqtc-qtbase/dev) db3a6330cf (qt/qtbase/6.3) db3a6330cf (qt/tqtc-qtbase/6.3) c5883aeb88 (qt/qtbase/6.4) c5883aeb88 (qt/tqtc-qtbase/6.4)
Description
There are 2 bugs with file opening while doing so in flatpak environment:
If dbus is available and Qt detects that it being executed in flatpak environment, but dbus returns that portal implementation is not available, Qt silently fails, so "open file" button does nothing instead of displaying (usual, non-portal) "Open file" dialog.
If dbus is not available, but Qt detects that it being executed in flatpak environment, pushing "Open file" button hangs whole UI and the application is not responsive until I restart it.
Steps to reproduce:
For the first case:
- Install flatpak, but without portal implementation (like xdg-desktop-portal-gtk or xdg-desktop-portal-kde).
- Open flatpaked Qt app that supports portals (like qBittorrent).
- Push "Open file" button.
For the second:
- Install flatpak, with or without portal implementation.
- Install the same app as above
- Execute flatpak app as `env -u DBUS_SESSION_BUS_ADDRESS flatpak run ...`
Attachments
Issue Links
- relates to
-
QTBUG-102458 better xdg-desktop-portal support
- Reported
For Gerrit Dashboard: QTBUG-98988 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
415062,1 | Add QXdgDesktopPortalFileDialog::useNativeFileDialog() | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |
415088,1 | Fallback to another file dialog implementation when XDP is inaccessible | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: NEW | 0 | 0 |
415089,1 | Fallback to another file dialog implementation when XDP is inaccessible | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: NEW | 0 | 0 |