r/voidlinux • u/ZenitDS • Oct 05 '26
Flatpaks and xdg-desktop-portal errors opening urls
Hello,
I am having trouble with flatpak apps to open urls. It appears that there is an issue with the xdg desktop portal. I am getting the following in thunderbird:
** (org.mozilla.thunderbird:2): WARNING **: XX:XX:XX.XXX: Could not launch default application for URI: Failed to call OpenURI portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.OpenURI” on object at path /org/freedesktop/portal/desktop
I am guessing it might be because of missing systemd. I would like that openURI use the flatpak librewolf.
Cheers. -- zen
EDIT: I fixed it by adding ~/.config/xdg-desktop-portal/sway-portals.conf with:
[preferred]
default=gtk
Thanks to everyone for the answers!
2
Upvotes
2
u/Duncaen Oct 05 '26
You probably don't have a portal configured for you windowmanager/compositor.
https://www.reddit.com/r/voidlinux/comments/1waltyl/openuri_not_available_for_desktopportal/
1
u/ZenitDS Oct 05 '26
UPDATE: I can do xdg-open from outside the flatpak sandboxes but not from the inside...
1
u/benbcdm Oct 05 '26 edited Oct 05 '26
I am pretty sure this has nothing to do with systemd. I have no pb opening URL from betterbird (thunderbird fork) as pre-compiled binary to librewolf appimage.
Wondering if this might have to do with flatpak permissions, did you try to allow permissions with flatseal for instance? If your thunderbird is flatpak that might play a role.
Might also have to do with your desktop -- which desktop are you using? Depends what you have as default app defined for browser. That default .desktop linking to your browser (librewolf?) needs to be the exact right binary path to executing librewolf.
2
u/profeshamat Oct 05 '26
It may be related to LibreWolf being a Flatpak and sandboxed. Or you're missing a necessary
xdg-desktop-portal-package.0
u/ZenitDS Oct 05 '26
Ok, I got it working for a moment, it appears that running xdg-desktop-portal-gtk has to be done well before xdg-desktop-portal ... :/
I do not yet know how to make xdg-desktop-portal-gtk being started automatically.