Since I also have Wayfire installed on the computer, I have gui-libs/xdg-desktop-portal-wlr-0.5.0 installed. It seems that normally multiple portals can be active concurrently and xdg-desktop-portal nicely pulls the right service from each, but not so with xdg-desktop-portal-wlr. When started with current gnome-40.0 / x11-wm/mutter-41.3, I get a nasty timeout and nonfunctional screencast with message: [ERROR] - Compositor doesn't support zwlr_screencopy_manager_v1! [ERROR] - xdpw: failed to initialize screencast The solution I have come up with for now is to add: ConditionEnvironment=!DESKTOP_SESSION=gnome to the unit in /usr/lib/systemd/user/xdg-desktop-portal-wlr.service. Certainly, it would be better to fix the probing behavior of xdg-desktop-portal-wlr... Reproducible: Always
Created attachment 763776 [details, diff] Patch to add to ebuild or user patches to add the necessary unit condition
Could you report a bug upstream?
Hi have you tried the git master version? If so I may be able to poke for a tag to be made.
(In reply to Matthew Thode ( prometheanfire ) from comment #3) > Hi have you tried the git master version? If so I may be able to poke for a > tag to be made. Thanks! I first replicated the problem against my up-to-date ~x64 system (gnome-base/gnome-shell-42.0-r1 etc) and gui-libs/xdg-desktop-portal-wlr-0.5.0 and ensured that the problem still persisted (without my patch), and that the condition in xdg-desktop-portal-wlr.service I introduced fixed it. I then used the current master (https://github.com/emersion/xdg-desktop-portal-wlr/commit/371138e4c7504cb912996cb60da22a11677dd72c). It works without the patch being needed, as it should. There have been a lot of commits in April, several of which addressed the compatibility of the portal - one of them apparently fixed the problem.
made a release/tag request
I think this can be closed now since gui-libs/xdg-desktop-portal-wlr-0.6.0 is out over a month and doesn't show the bug any more. Thanks for the help!