add LD_LIBRARY_PATH to env
This commit is contained in:
@@ -47,6 +47,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
import java.util.Optional;
|
||||
import java.util.TimeZone;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
@@ -230,6 +231,11 @@ import java.util.regex.Pattern;
|
||||
new_env.put("BLENDER_SYSTEM_DATAFILES", "");
|
||||
new_env.put("OCIO", ""); //prevent blender from loading a non-standard color configuration
|
||||
|
||||
// Add own lib folder first, because Steam or other environments may set an LD_LIBRARY_PATH that has priority over the runpath in the Blender excutable,
|
||||
// but contains incompatible libraries.
|
||||
String currentLDLibraryPath = Optional.ofNullable(System.getenv("LD_LIBRARY_PATH")).orElse("");
|
||||
new_env.put("LD_LIBRARY_PATH", getRendererDirectory() + "/lib" + ":" + currentLDLibraryPath);
|
||||
|
||||
for (String arg : command1) {
|
||||
switch (arg) {
|
||||
case ".c":
|
||||
|
||||
Reference in New Issue
Block a user