Skip to content
Snippets Groups Projects

Add steam-runtime-launcher-service integration

Merged Simon McVittie requested to merge wip/smcv/launcher-service into master
Files
2
+ 31
0
@@ -11,6 +11,7 @@ me="${me##*/}"
# Don't rely on it.
is_main=yes
launcher_service=
suite=
verbose=
log_to_file=
@@ -139,6 +140,10 @@ while [ "$#" -gt 0 ]; do
(waitforexitandrun)
is_main=yes
;;
(runlauncherservice)
is_main=yes
launcher_service=yes
;;
(run)
export PRESSURE_VESSEL_BATCH=1
is_main=
@@ -277,6 +282,32 @@ for word in $ld_preload; do
done
IFS="$old_IFS"
if [ -n "$launcher_service" ] || [ -n "${STEAM_LINUX_RUNTIME_LAUNCHER_SERVICE-}" ]; then
if [ -n "${STEAM_COMPAT_LAUNCHER_SOCKET-}" ]; then
launcher_service_address="--socket=${STEAM_COMPAT_LAUNCHER_SOCKET}"
elif [ -n "${STEAM_COMPAT_LAUNCHER_BUS_NAME-}" ]; then
launcher_service_address="--bus-name=${STEAM_COMPAT_LAUNCHER_BUS_NAME}"
else
launcher_service_address="--bus-name=com.steampowered.App${STEAM_COMPAT_APP_ID-0}"
fi
container_args+=("--launcher")
# In this mode, arguments after "pressure-vessel-wrap --" go to
# s-r-launcher-service, and arguments after "s-r-launcher-service --"
# are in turn the actual command to run.
set -- "$launcher_service_address" -- "$@"
echo "Starting program with command-launcher service." >&2
echo >&2
echo "To inject commands into the container, use a command like:" >&2
echo >&2
echo "$here/pressure-vessel/bin/steam-runtime-launch-client \\" >&2
echo " $launcher_service_address \\" >&2
echo " -- \\"
echo " xterm"
echo >&2
fi
unset LD_LIBRARY_PATH
unset STEAM_RUNTIME
Loading