Closed jugendhacker closed 8 months ago
It also still shows as incompatible for me in https://extensions.gnome.org/extension/755/hibernate-status-button/ Using Ubuntu 23.10 here.
Duplicate of #109
@p91paul IMHO this is not a duplicate of #109, as this issue here is about a actual bug that prevents me from using the extension rather than it not being on extensions.gnome.org (which 109 seems to be about)
@jugendhacker how did you install? I just assumed it was from extensions.gnome.org, but if you installed manually the code from here (and the extension tool didn't force update you) then something is wrong and I will reopen. Please try disabling other extensions to rule out extensions incompatibilities, as I've seen the extension mostly working, at least to the point of showing the hibernate entries in the menu.
I'm getting the same error @jugendhacker mentioned when he opened this issue. Installed manually to GNOME 45.
I was able to make this work locally by delaying the initialization of the extension until Main.panel.statusArea.quickSettings._system
becomes available. Here's an explanation of why the issue happens in the first place: https://discourse.gnome.org/t/main-panel-statusarea-quicksettings-system-is-undefined/16827
Here's my PR: https://github.com/arelange/gnome-shell-extension-hibernate-status/pull/113
I've never written gnome-shell extensions, so my fix might not follow some best practice - if that's the case, feel free to scratch it and do it appropriately :)
The extensions application does not let me enable it on GNOME 45, because of
this.systemMenu is undefined
Possibly related to #106