ubuntu / gnome-shell-extension-appindicator

Adds KStatusNotifierItem support to the Shell
https://extensions.gnome.org/extension/615/appindicator-support/
GNU General Public License v2.0
1.2k stars 163 forks source link

trayIconsManager is null #391

Open Baysul opened 1 year ago

Baysul commented 1 year ago

Installed the latest version of this extension through the website but there are no tray icons even when there should be.

Based on a comment from the extension page, I determined that maybe I was missing a package called libappindicator-gtk3 so I installed it but it still didn't show any icons. So I disabled the extension and now I cannot re-enable it because it has this error: image

3v1n0 commented 1 year ago

I would need journalctl logs to get more context.

LeoSum8 commented 1 year ago

I have the same error. Running latest debian testing (Debian GNU/Linux trixie/sid), gnome version 44.5.

heres my journalctl of installing and then disabling it:

bOct 22 20:45:11 x230debian gnome-shell[1690]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Oct 22 20:46:03 x230debian dbus-daemon[1504]: [session uid=1000 pid=1504] Activating service name='org.gnome.BrowserConnector' requested by ':1.143' >
Oct 22 20:46:03 x230debian dbus-daemon[1504]: [session uid=1000 pid=1504] Successfully activated service 'org.gnome.BrowserConnector'
Oct 22 20:46:05 x230debian gnome-shell[14191]: Archive:  /tmp/4WKKD2.shell-extension.zip
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:05 x230debian gnome-shell[14191]:  extracting: /home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com>
Oct 22 20:46:18 x230debian gnome-shell[1690]: JS ERROR: Extension appindicatorsupport@rgcjonas.gmail.com: TypeError: trayIconsManager is null
                                              destroy@/home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com/trayI>
                                              disable@/home/username/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com/exten>
                                              _callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:132:32
                                              _onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:565:24
                                              _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:627:18
                                              createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46
                                              disableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:238:29
                                              DisableExtension@resource:///org/gnome/shell/ui/shellDBus.js:451:38
                                              _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:329:38
                                              _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
Razer0123 commented 1 year ago

Getting the same error after updating to Fedora 39

fthx commented 4 months ago

Hi Marco,

I do not use this extension but tried it out for an eventual systray for Thunderbird 128 (snap) in Noble.

I hit this bug here, when disabling: https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/922498c57163298adf0e701926fdd3b4757b34a1/extension.js#L62

Stack trace:
  destroy@file:///usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/trayIconsManager.js:36:9
  disable@file:///usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/extension.js:62:43
  _callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:218:32
  _onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:644:24
  _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:739:18
  createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46
  disableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:310:29
  DisableExtension@resource:///org/gnome/shell/ui/shellDBus.js:457:38
  _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:329:38
  _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
  @resource:///org/gnome/shell/ui/init.js:21:20

Consequence: the next lines in destroy function are not applied, the extension remains activated in GS.

fthx commented 4 months ago

So maybe here: https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/922498c57163298adf0e701926fdd3b4757b34a1/trayIconsManager.js#L36

I would try to simply include:

if (trayIconsManager)
    trayIconsManager.destroy();

FWIW