Bug 422508 - Portal File Dialog is launched behind main app GUI
Summary: Portal File Dialog is launched behind main app GUI
Status: RESOLVED NOT A BUG
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 22:19 UTC by Jeremy Palmer
Modified: 2021-06-25 16:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Palmer 2020-06-05 22:19:42 UTC
SUMMARY

When opening a system file dialog in a flatpak QT application (QGIS) the dialog is launched behind the main app window. This has been observed on Ubuntu 18.04. 

See original issue https://github.com/flathub/org.qgis.qgis/issues/11

STEPS TO REPRODUCE
1. sudo add-apt-repository ppa:alexlarsson/flatpak
2. sudo apt update && sudo apt install flatpak
3. flatpak install --from  https://flathub.org/repo/appstream/org.qgis.qgis.flatpakref
4. flatpak run org.qgis.qgis
5. In QGIS app menu select Project->Open

OBSERVED RESULT

Notification message is raised 'Portal "Choose a QGIS Project File to Open" is ready', but the file open dialog is launch in background in separate window. 


EXPECTED RESULT

SOFTWARE/OS VERSIONS
Linux: Ubuntu 18.04.4 LTS
Qt Version: 5.14.2

ADDITIONAL INFORMATION

using ppa:alexlarsson/flatpak

$ sudo apt-get install xdg-desktop-portal xdg-desktop-portal-gtk xdg-desktop-portal-kde flatpak
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xdg-desktop-portal-kde is already the newest version (5.12.7-0ubuntu0.1).
flatpak is already the newest version (1.7.2-flatpak2~bionic).
xdg-desktop-portal is already the newest version (1.7.1-flatpak2~bionic).
xdg-desktop-portal-gtk is already the newest version (1.7.1-flatpak1~bionic).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Comment 1 Jan Grulich 2021-06-25 16:10:16 UTC
This is not an issue in xdg-desktop-portal-kde:

1) You use Ubuntu (GNOME), therefore you use xdg-desktop-portal-gtk
2) This has been fixed in Qt, however, there is still some issue in GTK probably as I could reproduce this with GTK apps