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

Simon McVittie smcv at debian.org
Thu Oct 12 10:01:22 BST 2023


On Thu, 12 Oct 2023 at 09:57:11 +0200, Maximiliano wrote:
> 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.

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.)

> msg = 0x55a776ede180 "Settings schema 'org.gtk.gtk4.Settings.FileChooser' does not contain a key named 'view-type'"
...
> #5  0x00007fbfd6344c7b in g_settings_schema_get_value (schema=0x55a776e780f0, key=0x7fbfd5d2e07d "view-type") at ../subprojects/glib/gio/gsettingsschema.c:1010
...
> #8  0x00007fbfd57dd255 in settings_load (impl=0x55a776e5c940 [GtkFileChooserWidget]) at ../subprojects/gtk/gtk/gtkfilechooserwidget.c:3205

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



More information about the pkg-gnome-maintainers mailing list