No Tray Icon in Linux

That’s not really practical for an Ubuntu user as the new Ubuntu runs Compiz by default. I’m not about to switch to metacity for a bad-looking tray icon.

Spark 2.5.7 has fixed the problems I was encountering with the Notifications Area (System Tray) of my Fedora/Gnome desktop. Also, I can now start Spark with the System Tray only.

2.5.7 does not resolve the missing systray icon in Compiz + KDE + the two extra .jars provided earlier in this thread. As an aside I dont use Ubuntu, so in my case Compiz is by choice, not by obligation

Cheers,

RioGD

In my case the ONLY way to get spark notification icon to work is to start in Metacity, run spark, and switch to compiz. Than the icon stays, but every opened window is gray.

Of course that way you cant add spark to autostart.

Thank you,

Rob

I just wanted to say that this plugin worked great with 2.5.7 on rhel41 and kde.

Any chance of adding this plugin to the standard build, since it clearly helps a little in some cases?

Sam.

Agreed, I’m running Spark 2.5.7 with Ubuntu 7.10 and with Compiz enabled Spark loses the ability to add the tray icon for some reason.

If I disable Compiz and go back to the default vanilla config without it, then it gains the ability to display the tray icon again. I would really like to see a fix for this one as well. It’s forcing me to use different clients that support Compiz at the moment.

Is there any ETA on tray icon in composite linux environment? Because of this bug I have to use use gajim/pidgin and I would really like to use spark.

I am having the same problem with Spark 2.5.8 on Fedora 8(Werewolf) x86_64 under Gnome 2.20.3 with desktop effects enabled. Spark came with jniwrapper.jar but not linuxplugins.jar. However, after ensuring that both files are in the plugins directory, the tray icon still does not appear. I’ve also tried running it as root with SElinux disabled and the tray icon still did not appear.

I looked at the logs and found the following exception(s),

Sep 4, 2008 8:01:13 PM org.jivesoftware.spark.util.log.Log error
SEVERE: Error launching browser:
java.io.IOException: Cannot run program “netscape”: java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.jivesoftware.spark.util.BrowserLauncher.openURL(BrowserLauncher.java:506)
at org.jivesoftware.spark.ui.ChatArea.mouseClicked(ChatArea.java:426)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
… 28 more


Sep 7, 2008 1:21:23 AM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.UnsupportedOperationException
at java.awt.TrayIcon.(Unknown Source)
at java.awt.TrayIcon.(Unknown Source)
at org.jivesoftware.spark.plugins.LinuxSystemTray.(LinuxSystemTray.java:105)
at org.jivesoftware.spark.plugins.LinuxPlugin.initialize(LinuxPlugin.java:20)
at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:404)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Great find Rob, that worked for me.

I know that Compiz has a problem with Java which causes grey windows. It is fixed in Java 7 Beta but I found it unuseable for other reasons. I have fixed the problem with grey windows but I can’t remember what it is, if I remember I will post back. There is a very small chance that it is to use the JRockit implementation of Java but I think that fixes Tomcat’s out of memory error and not the grey window. However, if you are desperate you can give it a go and see if it works for you. I also remember that finding the JRockit download was very difficult last time! The bookmark I have no longer works - sorry.

When I use Compiz and Spark, in my ~/.Spark/logs directory I have a error.log file which contains:

08-Sep-2008 18:08:58 org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.UnsupportedOperationException
at java.awt.TrayIcon.(TrayIcon.java:105)
at java.awt.TrayIcon.(TrayIcon.java:129)
at org.jivesoftware.spark.plugins.LinuxSystemTray.(LinuxSystemTray.java:105)
at org.jivesoftware.spark.plugins.LinuxPlugin.initialize(LinuxPlugin.java:20)
at org.jivesoftware.spark.PluginManager$1.run(PluginManager.java:404)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27 3)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:17 3)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

That error vanishes when I don’t use Compiz.

By the way, the grey window problem mentioned above when using Compiz and spark may be fixed in sun java-1.6.0_10. The grey windows went away for me in NetBeans when I upgraded to that JDK. I had problems before that using sun jdk1.6.0_06.

Even better than that is that the tray icon works with java-1.6.0_10. I can now start Spark in the tray. I am running Debian lenny with Compiz from the repo (See the first post on this page for how to set the version of Java that Spark uses).

The icon also does not show at my PC.

I run Spark 2.5.8 on Fedora 10 (Linux 2.6.27.9-159.fc10.i686 #1 SMP Tue Dec 16 15:12:04 EST 2008 i686 i686 i386 GNU/Linux)

./java -version
java version “1.6.0_02”
Java™ SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot™ Server VM (build 1.6.0_02-b05, mixed mode)

(bundled with Spark)

Your linuxplugin.jar works fine for me but the icon is so ugly.

Is there any updated version?

Also, the jniwrapper.jar seems not to be loaded (see my attachment).

I tried to change permission on Spark and all sub-folders to writable for all but no more luck.

Have you got any more advice for me?

Thanks,

Tuan