steam: improve --shell
This commit is contained in:
parent
5b97cd46e9
commit
0b8a8c516f
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ if [[ "${XAUTHORITY:-}" == /tmp/* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1:-}" == "--shell" ]; then
|
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
|
else
|
||||||
exec bwrap "${args[@]}" -- /usr/bin/steam -disable-cef-sandbox "$@"
|
exec bwrap "${args[@]}" -- /usr/bin/steam -disable-cef-sandbox "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue