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
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue