-
-
Notifications
You must be signed in to change notification settings - Fork 0
Usage Launch Scripts
Part of the Usage reference. · ← Previous: umu-launcher plugin (Linux only) · Next: Session daemon →
A launch script wraps the fully-resolved launch command with your own shell script. When a
script is active for a game, Aurelia runs the script as the program and passes the
previously-resolved program and its arguments to it as "$@", so a script that is just
exec "$@" is a transparent passthrough, while a custom one can prepend gamemoderun,
mangohud / gamescope or launch its own way. This works uniformly for native, Proton
(WineTkg), luxtorpeda and umu launches, because it rewrites the final launch command just
before spawning.
Script directory. Scripts live in AURELIA_SCRIPT_DIR if that env var is set, otherwise
~/.config/Aurelia/scripts. A game's auto-detected script is <script_dir>/<appid>.sh on
unix (<appid>.bat on Windows). aurelia scripts new sets the unix executable bit (0o755).
Exported environment. Alongside the entire resolved launch environment (WINEPREFIX,
WINEDLLOVERRIDES, STEAM_COMPAT_*, …), Aurelia exports:
| Variable | Meaning |
|---|---|
AURELIA_APP_ID |
the Steam app id |
AURELIA_APP_NAME |
the game's display name |
AURELIA_GAME_DIR |
the game's install directory (when known) |
AURELIA_LAUNCH_PROGRAM |
the resolved program that would have run |
AURELIA_LAUNCH_ARGS |
its arguments, space-joined |
Resolution precedence (first match wins, and play --no-script bypasses all):
-
aurelia play <id> --script <PATH>: one-off override for a single launch. -
aurelia config game <id> --launch-script <PATH>: the per-game pinned script (stored aslaunch_scriptin the launcher config, cleared with--no-launch-script). - the auto-detected
<script_dir>/<appid>.sh(or.bat), when it exists on disk.
An explicit --script / --launch-script path that does not exist fails the launch with a
validation error rather than silently falling back.
aurelia scripts dir # print the resolved script directory
aurelia scripts list [--json] # app ids with a script + their resolved paths
aurelia scripts new <app_id> [-f] # scaffold <script_dir>/<app_id>.sh (or .bat)
aurelia scripts show <app_id> # print the resolved script path + contents
aurelia scripts remove <app_id> # delete the dir-based script
| Subcommand | Description |
|---|---|
dir |
Print the resolved launch-script directory. |
list |
List app ids that have a script (dir-based and config-pinned) with resolved paths and, when known, the game name. |
new <app_id> |
Create the script directory if needed and write a documented template to the platform path. Errors if the file exists unless --force. On unix the file is made executable. |
show <app_id> |
Print the resolved script path and its contents. |
remove <app_id> |
Delete the dir-based script (reports when none exists). |
Typical use:
aurelia scripts new 2270 # scaffold ~/.config/Aurelia/scripts/2270.sh
# edit it, e.g.: exec gamemoderun mangohud "$@"
aurelia play 2270 # launches through the script
aurelia config game 2270 --launch-script ~/wrappers/mygame.sh # pin a specific script
aurelia play 2270 --script ~/other.sh # one-off override
aurelia play 2270 --no-script # bypass all scripts for this launchEvery scripts subcommand honors the global --json flag.
Users
-
Usage
- Global behavior
- Authentication
- Library
- Store & discovery
- Collections
- Install & maintenance
- Launching
- Depots & branches
- Downgrade & pinning
- Steam Cloud
- Steam Workshop
- Friends & chat
- Inventory & market
- Configuration
- Proton & Wine
- Windows Steam runtime
- Luxtorpeda plugin
- umu-launcher plugin
- Launch scripts
- Session daemon
- Files & locations
- Exit codes & logging
- Windows Steam Runtime
Maintainers
Architecture