emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
591 stars 56 forks source link

Firefox not finding org.freedesktop.portal.Settings #167

Closed Arxcis closed 2 years ago

Arxcis commented 2 years ago

Hi.

Everything looks good to me. Where am I wrong?

emersion commented 2 years ago

Closing because this isn't an xdpw bug, it doesn't provide org.freedesktop.portal.Settings. xdg-desktop-portal-gtk is supposed to I think?

Arxcis commented 2 years ago

Closing because this isn't an xdpw bug, it doesn't provide org.freedesktop.portal.Settings. xdg-desktop-portal-gtk is supposed to I think?

Alright. Thank you for a very quick answer @emersion :pray:

So when starting on a fresh system, Am I supposed to install multiple xdg-desktop-portal-backends to get support for all the portals? Do they play nice together? Could I do:

sudo pacman -S\ 
  xdg-desktop-portal-wlr\ 
  xdg-desktop-portal-gtk\
  xdg-desktop-portal-gnome\
  xdg-desktop-portal-kde

And it would work ok? Is this what I am supposed to do? What happens when multiple backends provide implementation for the same portal? Which one is prioritized?

emersion commented 2 years ago

Yes, installing multiple backends at the same time should work fine. For wlroots-based compositors, you'll probably need -wlr and -gtk only.

Backends a prioritized depending on XDG_CURRENT_DESKTOP. As last resort, an arbitrary backend is picked.

Arxcis commented 2 years ago

Yes, installing multiple backends at the same time should work fine. For wlroots-based compositors, you'll probably need -wlr and -gtk only.

I did not know about this. Thank you for enlightening me. Do you by any chance have a link to a resource where I can read more about it? I found it difficult to search for this topic.

Backends a prioritized depending on XDG_CURRENT_DESKTOP. As last resort, an arbitrary backend is picked.

OK. I installed xdg-desktop-portal-gtk (in addition to the already installed xdg-desktop-portal-wlr) and set XDG_CURRENT_DESKTOP=sway in $HOME/.bashrc.

Now the warnings are gone in Firefox :+1: