Missing tray icon for 5.1.0-2891 on Linux
Brought to you by:
mguessan
When I run davmail directly from the commandline I get the DavMail Gateway window as expected with a davmail icon in my dock.
When I unset XDG_CURRENT_DESKTOP and then run davmail I expect to get a tray icon. Now I get a black square in the tray and a Java icon in my dock.
I'm on Ubuntu 18.04 with OpenJDK 8 and openjfx.
But the DavMail icon in your dock looks better :-)
Anyway, that's one of the reason why I disable tray icon under Gnome by default now.
=> you need a more recent SWT library, version 4.9 is known to work, see:
https://packages.debian.org/sid/libswt-gtk-4-java
or
https://github.com/mguessan/davmail/blob/master/lib/swt-4.9-gtk-linux-x86_64.jar
Note that Debian SID has the right version.
Can you package the swt jar file with the distribution?
No, but I can make SwtGatewayTray compatible with older SWT libs, see latest trunk.
I tried downloading the trunk build from https://github.com/mguessan/davmail and it didn't get better. The about dialog shows 5.1.0-trunk.
Working fine here, can you please check that you indeed have the old swt.jar ?
=>ps should show:
java -Xmx512M -Dsun.net.inetaddr.ttl=60 -Djdk.gtk.version=2.2 -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:/usr/share/davmail/lib/* davmail.DavGatewayHere is what I see:
So it seems that I don't have swt installed at all.
Last edit: Jon Schewe (BBN) 2019-01-09
I installed libswt-gtk-3-java version 3.8.2 and then started davmail and I see:
Found the problem, /usr/share/java/swt.jar is a symlink. Your shell script is using "-f" and should use "-e".
Running with XDG_CURRENT_DESKTOP set to ubuntu:GNOME prevents any tray icon.
Fixing "-e" vs. "-f" and unsetting XDG_CURRENT_DESKTOP I get
I installed libswt-cairo-gtk-3-jni and ran with XDG_CURRENT_DESKTOP cleared and I get my tray notification.
Fix merged