Is there a way to configure Compose Desktop to set...
# compose-desktop
j
Is there a way to configure Compose Desktop to set a system environment variable? Specifically the
LD_LIBRARY_PATH
environment variable on Linux.
p
System.setProperty maybe ? Or in a script that fires up the Compose app ?
m
How would a script be bundled in the compose app to set this env var? I can't seem to find an option for it in org.jetbrains.compose.desktop.DesktopExtension or anything it can navigate to.
p
The script set the env var then calls the desktop app....
m
Right, but how would I configure gradle to run that bash script instead of the app itself when it's bundled as a deb?
j
System.setProperty
sets a property within the JVM. But
LD_LIBRARY_PATH
is a system environment variable, so it needs to be set either before launching the JVM app or by running native code. Both could be options, but I'm wondering if there is a way to configure this with the Compose Desktop native distribution packaging.