Doesn't work in (default) Wayland in 17.10

Bug #1731800 reported by Chris Cowan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Caffeine
Won't Fix
Undecided
Unassigned

Bug Description

Caffeine-indicator fails to start in Wayland, the default in Ubuntu 17.10. I've attached the output from trying to start it.

Revision history for this message
Chris Cowan (macil) wrote :
Reuben Thomas (rrt)
Changed in caffeine:
importance: Undecided → Wishlist
importance: Wishlist → Undecided
status: New → Invalid
status: Invalid → New
no longer affects: xdg-utils
Revision history for this message
Reuben Thomas (rrt) wrote :

Thanks for this report. Exactly how to fix it will depend on how xdg-utils adapts to Wayland. At present, xdg-screensaver mentions Wayland, but since it uses xprop to get X window properties (and no other method), I don't see how it can possibly work with Wayland, which seems to have a completely different screen inhibition mechanism:

https://blogs.s-osg.org/inhibited-wayland-desktop-part-1/

There is also work to do in Caffeine, since it too assumes that X is being used, and creates an unmapped window so that it has an X window ID to pass to xdg-screensaver. (This is not terribly satisfactory either.)

I won't get around to fixing this until I'm using Wayland myself (at least August 2018, i.e. Ubuntu 18.04.1 being presented as an upgrade by default).

While I would certainly welcome patches in the mean time, I don't see how this can be sensibly patched until xdg-screensaver supports Wayland.

Also, I would greatly prefer that Caffeine did not need to retain X-specific code after Wayland support is added to xdg-screensaver. Unfortunately, this is hard to do without a complete rewrite of xdg-screensaver. It may be that it's easier simply to write a new version of Caffeine for Wayland.

Revision history for this message
Reuben Thomas (rrt) wrote :

Closing, as this bug is out of date. I still don't use Wayland, but I see that xdg-screensaver mentions it…

Changed in caffeine:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.