Skip to content

Instantly share code, notes, and snippets.

@onyxhat
Created December 7, 2025 15:44
Show Gist options
  • Select an option

  • Save onyxhat/9cdcbac44d566ee09e1bb8b42e79c257 to your computer and use it in GitHub Desktop.

Select an option

Save onyxhat/9cdcbac44d566ee09e1bb8b42e79c257 to your computer and use it in GitHub Desktop.
Setup Steam-Headless Directories
#!/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