From ArchWiki

xdg-desktop-portal offers a way for Flatpak applications to integrate with the desktop. It can allow applications to open URL's, share your screen and more. Depending on the implementation for your desktop there is a confirmation dialog before the application is able to access some portals.


xdg-desktop-portal is installed as a dependency of flatpak.

Next install the backend for your desktop environment. This is (xdg-desktop-portal-kde, xdg-desktop-portal-lxqt, xdg-desktop-portal-wlr (for wlroots-based desktop environments, like sway) or xdg-desktop-portal-gnome.

You might need to install xdg-desktop-portal-gtk if your application uses GTK.

After installing a backend, you need to restart the xdg-desktop-portal.service user unit.

This also starts the service if it hasn't started already.