cinatic / stocks-extension

A extension to display stock quotes in GNOME Shell Panel
GNU General Public License v3.0
84 stars 31 forks source link

About dialogue says X11 in a Wayland session #77

Closed bbhtt closed 1 year ago

bbhtt commented 1 year ago

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 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.