1
0
Fork 0

steam: improve --shell

This commit is contained in:
Luca Bilke 2025-02-03 22:33:14 +01:00
parent 5b97cd46e9
commit 0b8a8c516f
Signed by: luca
GPG key ID: C9E851809C1A5BDE

View file

@ -47,7 +47,10 @@ if [[ "${XAUTHORITY:-}" == /tmp/* ]]; then
fi
if [ "${1:-}" == "--shell" ]; then
exec bwrap "${args[@]}" -- /bin/sh
shift
[ -e "/bin/zsh" ] && sh="/bin/zsh"
[ -n "$*" ] && exec bwrap "${args[@]}" -- "$sh" -c "$*"
exec bwrap "${args[@]}" -- "$sh"
else
exec bwrap "${args[@]}" -- /usr/bin/steam -disable-cef-sandbox "$@"
fi