Getting a compositor display name?

Simon Ser contact at emersion.fr
Wed Nov 13 11:00:05 UTC 2019


On Wednesday, November 13, 2019 11:11 AM, Pekka Paalanen <ppaalanen at gmail.com> wrote:

> However, my fear with adding such information is that then clients
> might start adding conditional code paths based on the Wayland
> compositor name or version, which is an incorrect approach. Client
> behaviour that depends on the particular compositor must be keyed by
> the available global Wayland interfaces and their versions, not by the
> compositor identity.
>
> OTOH, Wayland is a few years old by now and developers should have
> learnt better, so maybe that fear is no longer relevant.

I share this fear as well. IMHO `ps` is good enough. You could
also use something like `lsof /dev/dri/card0` to get the DRM
master.


More information about the wayland-devel mailing list