cryptomator / cryptomator-linux

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

Preload jffi #27

Closed overheadhunter closed 3 years ago

overheadhunter commented 3 years ago

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.

For LD_PRELOAD to work, we