Created
March 13, 2026 10:10
-
-
Save Internetperson-dev/eb2ab58cc84ff43972294184967076e4 to your computer and use it in GitHub Desktop.
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
| #!/bin/sh | |
| DECKY_DIR="$HOME/.local/share/decky" | |
| SERVICE_DIR="$DECKY_DIR/services" | |
| PLUGIN_DIR="$DECKY_DIR/plugins" | |
| # TMPDIR had to be manually set on my computer. | |
| TMPDIR="$HOME/.cache/decky-tmp" | |
| BIN="$SERVICE_DIR/PluginLoader" | |
| export TMPDIR | |
| mkdir -p "$SERVICE_DIR" "$PLUGIN_DIR" "$TMPDIR" | |
| # install Decky if missing | |
| if [ ! -x "$BIN" ]; then | |
| echo "Decky Loader not found. Downloading latest release..." | |
| ``` | |
| if ! command -v curl >/dev/null 2>&1; then | |
| echo "curl is required" | |
| exit 1 | |
| fi | |
| if ! command -v jq >/dev/null 2>&1; then | |
| echo "jq is required" | |
| exit 1 | |
| fi | |
| RELEASE=$(curl -s https://api.github.com/repos/SteamDeckHomebrew/decky-loader/releases \ | |
| | jq -r 'first(.[] | select(.prerelease==false))') | |
| URL=$(echo "$RELEASE" | jq -r '.assets[].browser_download_url | select(endswith("PluginLoader"))') | |
| curl -L "$URL" -o "$BIN" | |
| chmod +x "$BIN" | |
| ``` | |
| fi | |
| # Enable CEF debugging for Steam Flatpak for Decky | |
| STEAM_DEBUG="$HOME/.var/app/com.valvesoftware.Steam/data/Steam/.cef-enable-remote-debugging" | |
| if [ -d "$HOME/.var/app/com.valvesoftware.Steam" ]; then | |
| touch "$STEAM_DEBUG" | |
| fi | |
| echo "Starting Decky Loader..." | |
| exec "$BIN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment