1
0
Fork 0

steam: add --shell option

This commit is contained in:
Luca Bilke 2025-02-03 22:22:56 +01:00
parent 025b3fb543
commit 3409026b6a
Signed by: luca
GPG key ID: C9E851809C1A5BDE

View file

@ -46,4 +46,8 @@ if [[ "${XAUTHORITY:-}" == /tmp/* ]]; then
args+=(--ro-bind-try "$XAUTHORITY" "$XAUTHORITY")
fi
exec bwrap "${args[@]}" -- /usr/bin/steam -disable-cef-sandbox "$@"
if [ "${1:-}" == "--shell" ]; then
exec bwrap "${args[@]}" -- /bin/sh
else
exec bwrap "${args[@]}" -- /usr/bin/steam -disable-cef-sandbox "$@"
fi