Spark doesn't go to System Tray, instead, never opens again. have to kill proccess

Hello, been using Spark for a couple years now. However, since version 2.8.X, the system tray icon is gone in Ubuntu (20.04 LTS). If you accidentally close through the X button, Spark IM disappear and proccess must be killed on terminal or computer reboot. We have several machines with windows, mac and linux, only linux machines shows this behavior.

tried multiple old versions from 2.8.x to 2.9.3. all same problem.

USER/.Spark/logs/error.log.0 is big with the same error, i will only paste once ofc:

Nov 09, 2020 1:41:51 PM org.jivesoftware.spark.util.log.Log error
SEVERE: Tray don't supports on this platform.
Nov 09, 2020 1:41:51 PM org.jivesoftware.spark.util.log.Log error
SEVERE: An exception occurred while initializing plugin org.jivesoftware.spark.plugins.LinuxPlugin@4125f60c
	at java.desktop/java.awt.TrayIcon.<init>(
	at java.desktop/java.awt.TrayIcon.<init>(
	at org.jivesoftware.spark.plugins.LinuxSystemTray.<init>(
	at org.jivesoftware.spark.plugins.LinuxPlugin.initialize(
	at org.jivesoftware.spark.PluginManager.lambda$initializePlugins$1(
	at java.desktop/java.awt.event.InvocationEvent.dispatch(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/

from my googling, it appears that GNOME3 changed system tray icons, and replaced it with AppIndicator. It might be a while before this is addressed in spark, since spark doesn’t have a lot of active development at the moment.
adding this extension may help

Thanks for answering. However I cannot install this extension, firefox gives simple “error” status when trying to switch on. on Chromium it says another error about some native stuff (maybe due to the browser being a snap package).

Since the development is slow, there is nothing to do then. we will be careful not to close the main window, only minimize it.

Yes, it was reported a month ago.
As speedy said we don’t have many active developers. Especially working on Linux or macOS.

Temporary Fix

Shows a black square icon, right-click options do not work BUT left click brings back the window, no need to kill anymore.

Shows a duplicate spark in alt+tab “JavaEmbbedFrame”
Spark true tray icon stays in top left in the desktop, however it does not go over fullscreen apps or other windows, is safe for now.

Example of black tray icon + spark icon in desktop:
(https://) (only 2 links per post, so you copy and paste, not my fault)

Close spark to do this.

sudo apt install chrome-gnome-shell
sudo apt install gnome-tweak-tool

Install this on firefox web browser, must be firefox that comes with the system.

open tweak-tool, go to themes, change shell theme (will be available) to yaru-dark (the only one) and voala!

if tweak-tool is open before the extensions install, re-launch it.

1 Like