davmail
davmail copied to clipboard
Unable to reach the GUI with plasma 6 desktop
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
I am running an identical environment, same issue
I recommend starting DavMail with the -notray argument.
-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
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.
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.
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.
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.
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.
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
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, 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.
@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.
@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
Fixed in 6.5.1 by switching to SWT based tray icon
I have updated to version 6.5.1 and the problem persists. Please reopen this issue.
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.
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.
I opened a new ticket to track tray icon support issues at: https://github.com/mguessan/davmail/issues/428