Linux: add launcher script to fix issue launching on Steam

The steam environment sets LD_LIBRARY_PATH with a libtbb.so.2 that is
incompatible with our own. This wrapper scripts gives our own library
priority.

There is a more modern "Steam Linux Runtime" that can be used instead of
the "LD_LIBRARY_PATH Steam Runtime" and which launches Blender, but it
fails to detect GPU compute libraries. So that was not an option.

Ref #107385

Pull Request: https://projects.blender.org/blender/blender/pulls/109169
This commit is contained in:
Brecht Van Lommel 2023-06-21 14:49:27 +02:00
parent 7a3bf039d6
commit 9b3a508cd5
2 changed files with 13 additions and 0 deletions

View file

@ -515,6 +515,7 @@ if(UNIX AND NOT APPLE)
install(
PROGRAMS
${CMAKE_SOURCE_DIR}/release/bin/blender-launcher
${CMAKE_SOURCE_DIR}/release/bin/blender-softwaregl
DESTINATION "."
)