11 ms·
You can actually fix that! Set GTK_USE_PORTAL=1 in your environment and then basically all your GTK apps will use the platform file picker.
by Spivak 6y ago
You can actually fix that! Set GTK_USE_PORTAL=1 in your environment and then basically all your GTK apps will use the platform file picker.
- still_grokking 6y agoIt works fine with Firefox for me since some time. But does it really work with all GTK apps? I would have to install some Gnome app to test. Maybe someone else could confirm? This would be progress! (Even it uses some parts of Flatpak under the hood, which is less nice). I'm a little bit skeptical as Firefox had to add support for the desktop-portal before it started to work.
- wander_homer 6y agoNo, the GTK application needs to explicitly add support for that feature, by using the newer GtkFileChooserNative API, introduced in GTK 3.20, instead of the older and more extensive GtkFileChooser API. In my experience it's still a complete hit and miss whether a GTK application supports native dialogs and of course you actually might loose some features with it, since the new API doesn't support everything of the old one.
- Spivak 6y agoI wouldn't really expect that the new API will ever be able to support all the features of the old one simply because the dbus API it farms out to has to be generic across all toolkits / DEs.