Closed infeo closed 5 years ago
According to this post we can query the environment variable XDG_SESSION_TYPE
and check if it equals 'wayland' or not
According to JDK-8210411 this will be fixed with OpenJFX 12.
Backported to OpenJFX 11.0.2 (JDK-8216292), therefore resolved.
Reopening as the upstream fix doesn't work (see https://github.com/cryptomator/cryptomator/issues/846#issuecomment-475979998). We have to use GTK 2.
Seems like we can't satisfy every user. For now we will include the flag again.
When we finally switch to JavaFX 11, we should be aware of the bug JavaFX exposes on linux systems using Wayland as display server (see https://github.com/javafxports/openjdk-jfx/blob/jfx-11/doc-files/release-notes-11.md#javafx-crashes-with-openjdk-11-on-ubuntu-1804-with-wayland).
As a workaround we should either detect before cryptomator is starting which display server is used (e.g. by a startupscript) or should use always the announced workaround with
java -Djdk.gtk.version=2 ...
.