2023-06-21 14:49:27 +02:00
|
|
|
#!/bin/sh
|
2024-08-26 11:23:52 +10:00
|
|
|
BF_DIST_BIN=$(dirname "$(readlink -f "$0")")
|
2023-06-21 14:49:27 +02:00
|
|
|
BF_PROGRAM="blender"
|
|
|
|
|
|
|
|
|
|
# Add own lib folder first, because Steam or other environments may set an
|
2024-04-19 15:50:28 +10:00
|
|
|
# $LD_LIBRARY_PATH that has priority over the run-path in the Blender executable,
|
2023-06-21 14:49:27 +02:00
|
|
|
# but contains incompatible libraries.
|
|
|
|
|
LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
|
|
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
|
|
2023-06-22 12:35:53 +10:00
|
|
|
exec "$BF_DIST_BIN/$BF_PROGRAM" "$@"
|