Use terminal file manager for xdg-desktop-portal's file chooser by a wrap script.
make && sudo make installmkdir -p ~/.local/share/xdg-desktop-portalThen edit the ~/.local/share/xdg-desktop-portal/portals.conf:
[preferred]
default=<other portals>;sfcp
org.freedesktop.impl.portal.FileChooser=sfcp
Default wrap script will install to /usr/local/bin/wrap-sfcp-fm.
If you need configure it, cp it to your user's PATH
environment variable where it can be found.
.e.g: ~/.local/bin (set the PATH environment variable,
export PATH=$HOME/.local/bin:$PATH)