Due to problems reported on Ubuntu Groovy related to libffi8, we need to make sure that jffi is loaded before JavaFX starts up.
Instead of adding some dirty workarounds to the actual source code, we believe the easiest way to do it would be to set the LD_PRELOAD=libjffi-x.y.z.so environment variable before starting the jvm, e.g. by pointing AppRun to a shell script that takes care of this before starting Cryptomator.
or (and I am positive this is the superior approach for AppImages since we don't know the distro) we should bundle this lib ourselves.
Technically the lib is already bundled anyway (in jffi-x.y.z-native.jar), but we need an extracted .so file for the target architecture.
Due to problems reported on Ubuntu Groovy related to libffi8, we need to make sure that jffi is loaded before JavaFX starts up.
Instead of adding some dirty workarounds to the actual source code, we believe the easiest way to do it would be to set the
LD_PRELOAD=libjffi-x.y.z.so
environment variable before starting the jvm, e.g. by pointingAppRun
to a shell script that takes care of this before starting Cryptomator.For
LD_PRELOAD
to work, wejffi-x.y.z-native.jar
), but we need an extracted.so
file for the target architecture.