#1053829 xdg-desktop-portal-gnome: Firefox flatpak cannot open the file chooser portal

Package:
xdg-desktop-portal-gnome
Source:
xdg-desktop-portal-gnome
Description:
GNOME portal backend for xdg-desktop-portal
Submitter:
Maximiliano
Date:
2023-10-12 09:03:02 UTC
Severity:
normal
#1053829#5
Date:
2023-10-12 07:57:11 UTC
From:
To:
Opening the file chooser from the firefox flatpak, or any other sandboxed app crashes
xdg-desktop-gnome-portal.

See https://github.com/flatpak/xdg-desktop-portal for a traceback. After some digging, the
gschema of FileChooser contains a view-type in newer versions but not in the one shipped by gtk4 4.8.1.

#1053829#10
Date:
2023-10-12 08:26:13 UTC
From:
To:
I should note that to reproduce the issue one has to first set the the view type of the file chooser with the button bellow the "Open" button.

Maximiliano Sandoval R.

#1053829#15
Date:
2023-10-12 09:01:22 UTC
From:
To:
Is the one on
https://github.com/flatpak/xdg-desktop-portal/issues/1140 the traceback
you mean? (Please be specific, and don't assume that maintainers know all
the context for every bug that is reported.)
...
...

If flatpak/xdg-desktop-portal#1140 was your bug report, it appears you
are using a version of GTK that is not the one provided by Debian. Did
you compile your own xdg-desktop-portal-gnome or one of its dependencies
from source, perhaps installed in /usr/local?

If you did, it's up to you to do the necessary system integration to make
it work, which in this case would mean upgrading GTK 4 to a backported
version that meets x-d-p-gnome's requirements, or building a version of
x-d-p-gnome that is old enough to work with Debian 12's GTK 4, or
installing the GSettings schemas from the locally-built version into
/usr/local/share.

I would recommend using Debian's packaged versions of x-d-p-gnome and all
of its dependencies.

    smcv