Created
December 7, 2025 15:44
-
-
Save onyxhat/9cdcbac44d566ee09e1bb8b42e79c257 to your computer and use it in GitHub Desktop.
Setup Steam-Headless Directories
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Load env vars (compatible with Komodo) | |
| export $(cat .env | grep -vE '^#|^$|^USER_LOCALES' | xargs) | |
| # Make directories (if not exists) | |
| mkdir -p "${HOME_DIR}" | |
| mkdir -p "${SHARED_SOCKETS_DIR}"/{home,.X11-unix,pulse} | |
| mkdir -p "${GAMES_DIR}" | |
| # Take ownership of directories and set permissions | |
| chmod -R 777 "${GAMES_DIR}" | |
| chown -R ${PUID}:${PGID} "${GAMES_DIR}" "${HOME_DIR}" "${SHARED_SOCKETS_DIR}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment