Open the file manager from a flatpak application

Hello, I have created a flatpak to my downloader app.

How can I open the file manager from my application? It appears that calling xdg-open file:///path/to/folder does not seem to work. The file manager is not launched. The app has been given access to that of - --filesystem=host permission.

I tested xdg-open $HOME and it didn’t work either.

As this has been raised from the dead, the correct thing to do would be to implement it via portals and not expose the filesystem.

So have a look at GitHub - flatpak/xdg-desktop-portal: Desktop integration portal

ASHPD Demo | Flathub will also be helpful, here you can also look at the souce code and project pages, if you get stuck