Score:1

System tray icons all disappeared

cn flag

I'm running Ubuntu 20.04.5. Recently all of my system tray application icons (e.g. Dropbox, Discord) disappeared, and restarting did not help. When I run Dropbox or Discord from terminal, their outputs both include the following error (among a lot of other output):

libappindicator-WARNING **: 17:17:54.679: Unable to connect to the Notification Watcher: GDBus.Error:org.gnome.gjs.JSError.ValueError: domain.replaceAll is not a function

Similarly, when I run OBS or Talon (dictation software) from terminal, I get a related error:

QDBusTrayIcon encountered a D-Bus error: QDBusError("org.gnome.gjs.JSError.ValueError", "domain.replaceAll is not a function")

These programs all run normally otherwise, but I really want the tray icons back because some functionality can only be accessed from there. I searched up these errors but couldn't find anything useful.

Things that could have triggered this: the Software Updater recently updated some software, but I didn't pay attention to what was updated. Also, I only recently installed Talon. Both were shortly before the tray icons disappeared. I also use a GNOME extension/tweak called Icon Hider to hide some system tray icons, but I have been using that for months with no problems. Enabling and disabling the extension also did not solve the problem.

Does anyone know what might be causing this or how I can fix it?

Score:3
ec flag

This seems to be fixed here:

https://github.com/ubuntu/gnome-shell-extension-appindicator/commit/5ebb018e7b2d0219d3cf25c69f5d988b7a53121b

You can manually apply this fix in ~/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com/util.js by changing this line (about 470)

Logger._domain = domain.replaceAll(' ', '-');

to

Logger._domain = domain.replaceAll ? domain.replaceAll(' ', '-')
    : domain.split(' ').join('-');

Under X11, you may need to restart GNOME Shell (Alt+F2, r, ⏎) after that. Under Wayland you need to logout and login again.

Doing this fixed the problem for me until a new version is released.

ericc avatar
ph flag
Thanks, this solved my problem
Rayna avatar
cn flag
Thank you!! It turns out I installed this appindicator extension as part of setting up Talon, and then totally forgot about it. I don't need the extension right now, so disabling it solved my problem.
Score:0
ph flag

Same version 20.4.5 LTS, same issue
All my tray application icons disappeared after an update a few weeks ago.
I'm not using Talon or the extension "Icon Hider"

This is the error I'm seeing with "diodon", a clipboard manager :

(diodon:3931): libappindicator-WARNING **: 15:08:25.977: Unable to connect to the Notification Watcher: GDBus.Error:org.gnome.gjs.JSError.ValueError: domain.replaceAll is not a function
Score:0
wf flag

I had a similar problem in Zorin OS Core 16.2 (Ubuntu 20.04) and solved in 2 steps. First, install gnome-shell-extension-appindicator via terminal (sudo apt install gnome-shell-extension-appindicator). And, finally, install the extension AppIndicator and KStatusNotifierItem Support by 3v1n0 (AppIndicator and KStatusNotifierItem Support - GNOME Shell Extensions). Reference: how to use a tray icon. That's it. And if you also want minimize any program to the system tray, you can install the program called Kdocker (but it is still required doing the 2 steps mentioned before).

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.