https://bugs.kde.org/show_bug.cgi?id=477479
Bug ID: 477479
Summary: KDE file chooser portal can't be hidden
programmatically, but it can in GNOME
Classification: Plasma
Product: xdg-desktop-portal-kde
Version: git-stable-Plasma/5.27
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected], [email protected]
Target Milestone: ---
SUMMARY
We're trying to add an API close open file pickers in Firefox (I can give more
reasoning for that if wanted). However the KDE file picker doesn't react to the
`Close` method.
We're using `gtk_native_dialog_hide` / `_destroy`, which sends a `Close` method
to the portal, see
[here](https://gitlab.gnome.org/GNOME/gtk/-/blob/bcab0e4254ace10bb2b3de8d4c10bc25ef3368ce/gtk/gtkfilechoosernativeportal.c#L219-222)
for gtk4, and
[here](https://gitlab.gnome.org/GNOME/gtk/-/blob/65b0c289b03680b825101b68a5c4b11e99e31b43/gtk/gtkfilechoosernativeportal.c#L187-190)
for the gtk3 equivalent.
I was filing this as a bug when I noticed that `Close` is not documented
[here](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.FileChooser.html),
so maybe it should be an enhancement request?
I filed https://github.com/flatpak/xdg-desktop-portal/issues/1225 on it not
being documented. My _guess_ is that this should be fairly easy to implement,
happy to give it a go with some pointers.
Thanks :)
--
You are receiving this mail because:
You are watching all bug changes.