xdg-desktop-portal backend for choosing files with your favorite file chooser. By default, it will use the ranger file manager, but this is customizable. Based on xdg-desktop-portal-wlr (xpdw).
meson build
ninja -C build
ninja -C build install
Make sure XDG_CURRENT_DESKTOP
is set and imported into D-Bus.
When correctly installed, xdg-desktop-portal should automatically invoke xdg-desktop-portal-termfilechooser when needed.
For example, to use this portal with Firefox, launch Firefox as such:
GTK_USE_PORTAL=1 firefox
.
See man 5 xdg-desktop-portal-termfilechooser
.
At the moment, some command line flags are available for development and testing. If you need to use one of these flags, you can start an instance of xdpw using the following command:
xdg-desktop-portal-termfilechooser -r [OPTION...]
To list the available options, you can run xdg-desktop-portal-termfilechooser --help
.
MIT