bdk-blender/release/bin/blender-launcher
Campbell Barton 39851db1fa Linux: remove historic bourne shell argument expansion workaround
This is a history workaround not needed for modern shells
(fixed with bourne shell SRV3, 1986).

This isn't used in other wrappers (snap package) for e.g.
2023-06-22 13:17:28 +10:00

13 lines
369 B
Bash
Executable File

#!/bin/sh
BF_DIST_BIN=$(dirname "$0")
BF_PROGRAM="blender"
# 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.
LD_LIBRARY_PATH=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
exec "$BF_DIST_BIN/$BF_PROGRAM" "$@"