Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832181 - gui-libs/xdg-desktop-portal-wlr-0.5.0: Causes screencast to break on gnome
Summary: gui-libs/xdg-desktop-portal-wlr-0.5.0: Causes screencast to break on gnome
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL: https://github.com/emersion/xdg-deskt...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-28 07:40 UTC by Bernd Feige
Modified: 2022-07-23 12:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add to ebuild or user patches to add the necessary unit condition (dont-start-on-gnome.patch,554 bytes, patch)
2022-01-28 07:41 UTC, Bernd Feige
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2022-01-28 07:40:13 UTC
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
Comment 1 Bernd Feige 2022-01-28 07:41:31 UTC
Created attachment 763776 [details, diff]
Patch to add to ebuild or user patches to add the necessary unit condition
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-28 00:03:42 UTC
Could you report a bug upstream?
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2022-04-28 18:37:27 UTC
Hi have you tried the git master version?  If so I may be able to poke for a tag to be made.
Comment 4 Bernd Feige 2022-05-01 09:43:18 UTC
(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.
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2022-05-01 17:37:01 UTC
made a release/tag request
Comment 6 Bernd Feige 2022-07-23 12:32:58 UTC
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!