Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 952  / 2 Years ago, fri, december 24, 2021, 10:31:50

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?


More From » gnome

 Answers
0

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/[email protected]/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.


[#168] Saturday, December 25, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
diket

Total Points: 167
Total Questions: 124
Total Answers: 109

Location: Somalia
Member since Wed, Mar 15, 2023
1 Year ago
diket questions
Fri, Mar 31, 23, 02:30, 1 Year ago
Mon, Jan 23, 23, 05:58, 1 Year ago
Tue, Nov 1, 22, 02:02, 2 Years ago
Sat, Dec 31, 22, 11:43, 1 Year ago
;