Skip to content
Snippets Groups Projects
Commit 5971dbf8 authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

_v2-entry-point: Add support for STEAM_COMPAT_FLAGS


Recently the Steam client started to use the environment variable
"STEAM_COMPAT_FLAGS" to set flags that the game we are about to launch
requires.

Currently the only available flag is "search-cwd", to signal the lagacy
behaviour where the game expects to have its installation path inside
the "LD_LIBRARY_PATH".

Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
parent 2bd4ab95
No related branches found
No related tags found
1 merge request!33WIP: _v2-entry-point: Add support for STEAM_COMPAT_FLAGS
Pipeline #9660 passed with warnings
......@@ -292,11 +292,31 @@ unset STEAM_RUNTIME
pressure_vessel="${PRESSURE_VESSEL_PREFIX:-"${here}/pressure-vessel"}"
# Arguments for pressure-vessel-wrap, currently none
# Arguments for pressure-vessel-wrap
declare -a container_args=()
handle_compat_flags () {
oldIFS="$IFS"
IFS=","
for flag in "${STEAM_COMPAT_FLAGS-}"; do
case "$flag" in
(search-cwd)
container_args+=("--search-cwd")
;;
(*)
# Currently "search-cwd" is the only compat flag that we expect to have
;;
esac
done
IFS="$oldIFS"
}
exec_container () {
# Run as a single command
handle_compat_flags
exec "$here/run-in-steamrt" \
--arch=amd64,i386 \
--deploy \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment