mguessan / davmail

DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
http://davmail.sourceforge.net
GNU General Public License v2.0
580 stars 86 forks source link

A black square instead of an icon in the system tray #260

Open so1arin opened 1 year ago

so1arin commented 1 year ago

Linux Mint 21.1 Vera Cinnamon.

Nofetch -

-MMMMMMMMMMMMMMM-.              -------------- 
      .-MMMM`..-:::::::-..`MMMM-.          OS: Linux Mint 21.1 x86_64 
    .:MMMM.:MMMMMMMMMMMMMMM:.MMMM:.        Host: 82JY Legion 5 17ACH6H 
   -MMM-M---MMMMMMMMMMMMMMMMMMM.MMM-       Kernel: 5.15.0-56-generic 
 `:MMM:MM`  :MMMM:....::-...-MMMM:MMM:`    Uptime: 5 hours, 36 mins 
 :MMM:MMM`  :MM:`  ``    ``  `:MMM:MMM:    Packages: 3260 (dpkg), 22 (flatpak) 
.MMM.MMMM`  :MM.  -MM.  .MM-  `MMMM.MMM.   Shell: zsh 5.8.1 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM-MMM:   Resolution: 1920x1080 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM:MMM:   DE: Cinnamon 5.6.5 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM-MMM:   WM: Mutter (Muffin) 
.MMM.MMMM`  :MM:--:MM:--:MM:  `MMMM.MMM.   WM Theme: Mint-Y (Mint-Y) 
 :MMM:MMM-  `-MMMMMMMMMMMM-`  -MMM-MMM:    Theme: Mint-X [GTK2/3] 
  :MMM:MMM:`                `:MMM:MMM:     Icons: Mint-Y [GTK2/3] 
   .MMM.MMMM:--------------:MMMM.MMM.      Terminal: konsole 
     '-MMMM.-MMMMMMMMMMMMMMM-.MMMM-'       CPU: AMD Ryzen 5 5600H with Radeon Graphics (12) @ 4.280GHz 
       '.-MMMM``--:::::--``MMMM-.'         GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q 
            '-MMMMMMMMMMMMM-'              Memory: 6634MiB / 15850MiB 

After launching davmail, the icon in the upper left corner of the screen is normal, the tray icon is a black square. Changed icons, desktop themes, and so on. It didn't help. How to win?

image

ma-santamaria commented 1 year ago

The same happens on Ubuntu 22.04.1

I have tried with the package from the offical repo (6.0.1), with the latest deb from sourceforge (6.1.0) and with the zip from sourceforge.

Always with swt.jar downloaded from http://www.eclipse.org/swt/ on the lib folder and executing davmail with XDG_CURRENT_DESKTOP= && davmail

When I tried de deb packages I also installed every libswt* package found on the Ubuntu repos.

In every case I get a black icon on the system tray and a "window" on the upper left corner of the screen with the davmail icon.

Besides this detail davmail works perfectly :)

esabol commented 1 year ago

If it bothers you, you could try starting davmail with the -notray command line option.

ma-santamaria commented 1 year ago

@esabol I know that I can disable the tray icon but having a little window that I will not use for anything still bothers me ;)

Finally I can get the tray icon working, when I first configure davmail I have to change the "Exchange protocol" to O365Interactive; this mode is not only incompatible with the SWT icon as stated on the documentation, it will also silently use the no SWT version (our beloved black tray icon with bonus window :wink:).

In the end the steps that I followed to get the tray icon are:

  1. Install the required SWT libraries, on Ubuntu that means installing the packages libswt-gtk-4-java and libswt-cairo-gtk-4-jni
  2. Make sure the "Exchange protocol" is not O365Interactive; if you need to use this mode its ok to change it once you are correctly logged on Exchange for the first time.

EDIT: I forget to say that XDG_CURRENT_DESKTOP= is not needed, just launch davmail as is

acosonic commented 1 year ago

Thanks to @ma-santamaria I've just installed both sudo apt install libswt-gtk-4-java libswt-cairo-gtk-4-jni and restarted davmail now icon is working fine!

I'm on 22.04, but problem was on 20.04 as well...

acosonic commented 1 year ago

Perhaps this should be added to Linux install documentation...