On Wed, Nov 13, 2019 at 11:00:05AM +0000, Simon Ser wrote: > On Wednesday, November 13, 2019 11:11 AM, Pekka Paalanen > <ppaala...@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.
There is also $XDG_CURRENT_DESKTOP specified in the desktop-entry-spec[0]. Jonas [0] https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html > _______________________________________________ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel