I'll post a fix. The correct function is Meta.is_wayland_compositorhttps://gnome.pages.gitlab.gnome.org/mutter/meta/func.is_wayland_compositor.html but since Meta is a private shell object and the aboutpage is loaded outside of the main extension context, Meta cannot be imported. So the other option is to look at some environment variable.
This is because https://github.com/cinatic/stocks-extension/blob/55490bcda8960c11c19ceec1ca92102e047fd791/stocks%40infinicode.de/components/settings/aboutPage.js#L115 is undefined
https://gitlab.gnome.org/daniruiz/gnome-shell/-/blob/master/js/misc/extensionUtils.js
I'll post a fix. The correct function is
Meta.is_wayland_compositor
https://gnome.pages.gitlab.gnome.org/mutter/meta/func.is_wayland_compositor.html but sinceMeta
is a private shell object and the aboutpage is loaded outside of the main extension context,Meta
cannot be imported. So the other option is to look at some environment variable.