Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if ! docker images | grep tianon/steam > /dev/null; then
- kodi-send --action="Notification(Steam,This is the first time you are starting steam. It might take a few minutes to download the container...,13000)"
- docker pull tianon/steam
- fi
- # Suspend audio device
- kodi-send --action="RunScript(/usr/bin/audio-suspend.py)"
- DOCKER_ARGS=" \
- --rm \
- --name steam \
- --privileged \
- -i \
- -e DISPLAY=:0.0 \
- -v /dev/shm:/dev/shm \
- -v /var/media:/media \
- -v /storage/.config/asound.conf:/etc/asound.conf \
- -v config:/root/.config \
- -v /tmp/.X11-unix:/tmp/.X11-unix \
- -v /var/run/dbus:/run/dbus"
- STEAM_ARGS=" \
- -full \
- -tenfoo \"
- /usr/sbin/docker run $DOCKER_ARGS tianon/steam steam $STEAM_ARGS "$@" > /tmp/steam.log 2>&1
- # Resume audio device
- kodi-send --action="RunScript(/usr/bin/audio-resume.py)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement