Created
July 11, 2016 12:34
-
-
Save Gahen/d4b31611150ec37ffb805919aa6c1249 to your computer and use it in GitHub Desktop.
Steam launcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# based on / choriated from https://github.com/webanck/docker-wine-steam | |
CONTAINER_NAME=vaporized_wine # this should probably change to your own container name ("docker ps" to know it) | |
( \ | |
echo 'Trying to run a new data container.' && \ | |
docker run -ti \ | |
-e DISPLAY \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \ | |
-v ~/.Xauthority:/home/wine/.Xauthority \ | |
-v /dev/snd:/dev/snd --privileged \ | |
-v /run/user/`id -u`/pulse/native:/run/user/`id -u`/pulse/native \ | |
-v `pwd`/shared_directory:/home/wine/shared_directory \ | |
--net=host \ | |
--name "$CONTAINER_NAME" \ | |
gahen/steam \ | |
2>/dev/null \ | |
) || ( \ | |
echo 'The container already exists, relaunching the old old one.' && \ | |
docker start -ai "$CONTAINER_NAME" \ | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment