Closed sidt4 closed 1 year ago
Steps to reproduce in GNOME.
$ systemctl --user stop xdg-desktop-portal*.service
xdg-desktop-portal-gnome
portal using below command.# cd /usr/share/xdg-desktop-portal/portals/
# mv gnome.portal gnome-disabled.portal
$ flatpak install org.gnome.Boxes
$ flatpak run org.gnome.Boxes
+
button in top left and select Install from file
menu option.xdg-desktop-portal-gtk
has crashed.journalctl
that xdg-desktop-portal-gtk
has crashed.[2]
.
gtk_file_filter_new_from_gvariant ()
returns aGtkFileFilter
which is a floating reference in GTK3.gtk_file_chooser_set_filter ()
takes ownership of this floating reference. So, we take a ref to the filter to account for the autoptr cleanup.Note that this happens only when we have a single filter ( with 1 or more rules ) set via
gtk_file_chooser_set_filter ()
in the app.