First ensure the packages xdg-desktop-portal and xdg-desktop-portal-kde using the command:
pamac install xdg-desktop-portal xdg-desktop-portal-kde