davmail icon indicating copy to clipboard operation
davmail copied to clipboard

Unable to reach the GUI with plasma 6 desktop

Open hamelg opened this issue 1 year ago • 7 comments

I am using the KDE Plasma 6 desktop environment. When I click on the Davemail tray icon in the system tray, the menu does not appear : I cannot open the GUI.

The only way to open the GUI is to delete the settings file (~/davemail.properties) and start Davemail. Something is broken, with KDE Plasma 5 the systray icon was working fine.

Running environnement

  • distro archlinux
  • KDE Plasma 6 desktop environment
  • davmail 6.2.2
  • swt 4.3
  • java-openjdk/openjfx 22

parameters 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/java/javafx-base.jar:/usr/share/java/javafx-controls.jar:/usr/share/java/javafx-fxml.jar:/usr/share/java/javafx-graphics.jar:/usr/share/java/javafx-media.jar:/usr/share/java/javafx-swing.jar:/usr/share/java/javafx-web.jar:/usr/share/davmail/lib/* davmail.DavGateway

hamelg avatar Aug 23 '24 09:08 hamelg

I am running an identical environment, same issue

ag-gaphp avatar Sep 05 '24 16:09 ag-gaphp

I recommend starting DavMail with the -notray argument.

esabol avatar Sep 05 '24 19:09 esabol

-notray is indeed an option, I also noticed you hava openjfx (that provides embedded browser for O365 interactive authentication) and swt, from my experience swt is incompatible with openjfx, you may try without swt.jar in classpath

mguessan avatar Sep 06 '24 08:09 mguessan

Thanks for the tip. When I need O365 interactive authentication I use the java azul zulu15.38.17-ca-fx-jre15.0.6. But this has no impact on this issue.

hamelg avatar Sep 06 '24 08:09 hamelg

With the -notray option an initial notification pops up, but I still do not see any way to interact with the application in any way. Could this have to do with tiling? I'm using plasma 6 with tiling.

MarkoSchuetz avatar Jun 13 '25 14:06 MarkoSchuetz

When you use -notray, DavMail should have a status window that is always there. That's how it works in my X11 window manager.

I used DavMail on KDE with -notray for a couple years just fine until some new RHEL release broke KDE, and I was forced to switch (back) to GNOME. That said, I have no experience with KDE plasma tiling or know what that is doing. But, yeah, there should be a DavMail window that's accessible at all times when you use -notray.

esabol avatar Jun 13 '25 20:06 esabol

I managed to reproduce the issue and found the relevant bug report on KDE: https://bugs.kde.org/show_bug.cgi?id=498824

This impacts all java applications with systemtray.

Waiting for the fix use the -notray option workaround.

mguessan avatar Jun 15 '25 15:06 mguessan

Update: I tried another approach based on SWT.

I reimplemented the interactive part of O365Authenticator based on SWT embedded browser.

Patch is available in trunk builds thanks to Appveyor, can you please try this ? Please grab the platform independent package for testing, then ./davmail in unzipped directory.

Tested on Fedora with Plasma and eclipse-swt package installed.

mguessan avatar Sep 24 '25 16:09 mguessan

I tried it, but it changes nothing. The issue persists. Is it the right build ?

https://ci.appveyor.com/api/projects/mguessan/davmail/artifacts/dist%2Fdavmail-6.4.0-trunk.zip?job=Environment%3A%20JAVA_HOME%3DC%3A%5CProgram%20Files%5CJava%5Cjdk1.8.0

hamelg avatar Sep 25 '25 06:09 hamelg

Same issue debian/trixie ii davmail 6.3.0.3627-1 all POP/IMAP/SMTP/CalDav/LDAP to Microsoft Exchange gateway - GUI ii davmail-server 6.3.0.3627-1 all POP/IMAP/SMTP/CalDav/LDAP to Microsoft Exchange gateway - headless No right click from the taskbar, -notray works fine, can select settings from the window.

ksmithguru avatar Oct 07 '25 16:10 ksmithguru

@ksmithguru, the author of DavMail has already made some changes for this, but they haven't been formally released yet. Can you download the trunk build (links are in the repo's README) and test that?

@mguessan wrote:

Update: I tried another approach based on SWT.

I reimplemented the interactive part of O365Authenticator based on SWT embedded browser.

Patch is available in trunk builds thanks to Appveyor, can you please try this ? Please grab the platform independent package for testing, then ./davmail in unzipped directory.

Tested on Fedora with Plasma and eclipse-swt package installed.

esabol avatar Oct 07 '25 16:10 esabol

@ksmithguru, the author of DavMail has already made some changes for this, but they haven't been formally released yet. Can you download the trunk build (links are in the repo's README) and test that?

I tried the trunk build and the issue persists, see my previous comment.

hamelg avatar Oct 09 '25 06:10 hamelg

@ksmithguru, the author of DavMail has already made some changes for this, but they haven't been formally released yet. Can you download the trunk build (links are in the repo's README) and test that?

I tried the trunk build and the issue persists, see my previous comment.

I downloaded the trunk build from the README (davmail-6.4.0-trunk.zip) and installed eclipse-swt (sudo dnf install eclipse-swt) and the tray icon right click menu works for me :)

Fedora Linux 42, KDE Plasma 6.4.5

kaminskyalexander avatar Oct 13 '25 21:10 kaminskyalexander

Fixed in 6.5.1 by switching to SWT based tray icon

mguessan avatar Oct 30 '25 10:10 mguessan

I have updated to version 6.5.1 and the problem persists. Please reopen this issue.

hamelg avatar Nov 01 '25 13:11 hamelg

Just updated to V 6.5.1 and restarted davmail on Plasma 6.5.1 using Wayland. Neither double-click nor right-click work on the icon. Another method to trigger the config dialog would be helpful.

Yamakuzure avatar Nov 04 '25 08:11 Yamakuzure

Another method to trigger the config dialog would be helpful.

I recommend that you start DavMail with the -notray option. Or modify the davmail startup script to make -notray the default operation.

esabol avatar Nov 05 '25 05:11 esabol

I opened a new ticket to track tray icon support issues at: https://github.com/mguessan/davmail/issues/428

mguessan avatar Nov 09 '25 22:11 mguessan