cryptomator / cryptomator-linux

Cryptomator .AppImage for Linux
GNU General Public License v3.0
14 stars 7 forks source link

Switching to JavaFX 11: Wayland support needs additional flag #8

Closed overheadhunter closed 5 years ago

overheadhunter commented 5 years ago

From @infeo on September 19, 2018 8:47

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 ....

Copied from original issue: cryptomator/cryptomator#720

overheadhunter commented 5 years ago

From @infeo on October 31, 2018 15:3

According to this post we can query the environment variable XDG_SESSION_TYPE and check if it equals 'wayland' or not

overheadhunter commented 5 years ago

Closing in favour of #9