O365Interactive can't open the link in firefox on fedora/gnome/wayland.
Brought to you by:
mguessan
DavMail on Fedora 31 w/ gnome/wayland.
When I run davmail w/ "davmail.mode=O365Interactive", and click on the link to open a url in my browser, I get the error "Firefox is already running, but is not responding." Opening links from my terminal works fine, so the problem seems specific to davmail.
I did see a similar error posted for keybase: https://github.com/keybase/client/issues/22782. I don't know if the problem is similar here or not. The proposed fix in that bug report did not work for me.
Thanks!
DavMail first tries native JDK Desktop.browse method and then fail over to xdg-open.
Can you please check davmail.log for errors and whether xdg-open is called by DavMail ?
I don't see anything, but I'll attach my properties and log files. I created a new log file for testing, so it's reasonably sized.
I checked on a fresh Fedora 31 installation, everything is working as expected with both jdk 8 and 11.
I even tried Zulu FX build to get full O365Interactive support:
https://www.azul.com/downloads/zulu-community/?version=java-13&architecture=x86-64-bit&package=jre-fx
Unable to reproduce
Sorry, this is a super old issue, but I came here from Google with the same error, and I was able to figure out how to reproduce and also how to fix the issue, at least for my particular setup. It seems to be a Java issue, rather than a DavMail one.
I am on an updated Arch Linux system with Wayland, and Firefox is configured to use Wayland with the environment variable
MOZ_ENABLE_WAYLAND=1
. Per the Arch Wiki, some programs have issues where they attempt to open a Firefox window using X, but Firefox is already running with Wayland. I was able to fix this issue by setting the environment variableMOZ_DBUS_REMOTE=1
. This seems to be an issue that happens as a result of Java's Desktop.Browse functionality, as a minimal program attempting to open Google using that method has the same behavior.Hope this helps someone!