Hi everyone,
I use some flatpak apps to chat with people (Discord, Zapzap for Whatsapp).
Since last update links won’t open when I click on them in app.
Launching these apps from terminal show me errors when I click on links :
Failed to call portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: L?interface ??org.freedesktop.portal.OpenURI?? n?existe pas pour l?objet ? l?emplacement /org/freedesktop/portal/desktop
(“interface org.freedesktop.portal.OpenURI doesn’t exist for the object or location /org/freedesktop/portal/dekstop”)
I thought it would be connected to xdg-portal, but I have packages installed
$ pamac search --installed xdg-desktop-portal
xdg-desktop-portal-gtk 1.14.1-3 extra
A backend implementation for xdg-desktop-portal using GTK
xdg-desktop-portal 1.18.0-2 extra
Desktop integration portals for sandboxed apps
This is likely caused by the recent updates to xdg-desktop-portal and xdg-desktop-portal-gtk. Downgrading those packages to the previous versions (xdg-desktop-portal-1.16.0-3-x86_64.pkg.tar.zst and xdg-desktop-portal-gtk-1.14.1-1-x86_64.pkg.tar.zst) should restore the ability to click links.
ok thank you. The service is restarting with the command, but
clicking on links from flatpak apps still doesn’t work, even if I quit the the flatpak application and restart it
service xdg-desktop-portal-gtk.service is killed as soon as I quit my X11 session, then when I come back to a new X11 session I have to manually restart the service with the command you typed here
As I understand it, xdg-desktop-portal-gtk is a backend, that is loaded/used by xdg-desktop-portal as needed; unless I’m mistaken; and that’s possible, as I haven’t needed to explore this area until these recent issues arose.
both packages were upgraded in september, and since upgrade everything worked fine until last OS update, so I doubt it’s connected with the packages versions.
I’ve learned that flatpak devs seem to have been wrestling with this issue for over five years, without any definitive outcome (See link at my post #9).
The issue was closed on September 11, 2003, with the final resolution equating to not much more than a shrug of the shoulders.
I ran into this issue too on a new Manjaro Cinnamon install. Spend 4 hours, tried all the tricks and checked all the checks… and finally found a solution thanks to this Github comment.
I ran /usr/lib/xdg-desktop-portal --verbose --replace
and for good measure right after that
I ran /usr/lib/xdg-desktop-portal-gtk --verbose --replace
and that fixed the problem for me. So maybe only the first command is enough to fix the issue
Failed to call portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Nenhuma interface ?org.freedesktop.portal.OpenURI? no objeto no caminho /org/freedesktop/portal/desktop