Skip to content

Adaptive file chooser portal

Guido Günther requested to merge file-chooser-portal into main

The portal allows for an adaptive file chooser dialog. Missing API bits are the selection of multiple files to open and the r/o toggle both of which we could add past merge.

I'll mark as draft as there's some #if 0 code to indicate the missing places but review comments are welcome. For actual issues in the file chooser widget file those at https://gitlab.gnome.org/guidog/pfs

For testing one could e.g. use:

$ cat ~/.config/xdg-desktop-portal/phosh-portals.conf 
[preferred]
default=phosh;gtk;
org.freedesktop.impl.portal.Access=phosh-shell;
org.freedesktop.impl.portal.Background=none;
org.freedesktop.impl.portal.Clipboard=none;
org.freedesktop.impl.portal.InputCapture=none;
org.freedesktop.impl.portal.RemoteDesktop=none;
org.freedesktop.impl.portal.ScreenCast=wlr;
org.freedesktop.impl.portal.Screenshot=gtk;wlr;
org.freedesktop.impl.portal.Secret=gnome-keyring;

(current phosh main uses this by default). If using another DE you can just test the file chooser by adding

org.freedesktop.impl.portal.FileChooser=phosh;

to your portals config.

Edited by Guido Günther

Merge request reports

Loading