Without using the executables directly, but use the dbus interface. Document is here: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.FileChooser.html This will allow the application to use the wm specific filechooser