|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Variables | |
| constexpr int | API_TIMEOUT_SEC = 5 |
| Timeout for Steam Web API HTTP requests. | |
| constexpr const char * | APPMANIFEST_PREFIX = "appmanifest_" |
| Prefix for game manifest files. | |
| constexpr const char * | CMD_CHECK_STEAM = "pgrep -x steam > /dev/null 2>&1" |
| Command to check if Steam process is running. | |
| constexpr const char * | CMD_FIND_STEAM_GAMES = "pgrep -a -f '/reaper SteamLaunch AppId=' 2>/dev/null" |
| Command to find running Steam games by reaper process. | |
| constexpr const char * | CMD_LAUNCH_STEAM_GAME = "steam -applaunch" |
| Command prefix for launching Steam games. | |
| constexpr const char * | CMD_SHUTDOWN_STEAM = "steam -shutdown" |
| Command to gracefully shutdown Steam. | |
| constexpr const char * | CMD_START_STEAM_SILENT = "steam -silent" |
| Command to start Steam silently (no window). | |
| constexpr const char * | COMMON_DIR = "common" |
| Directory containing installed games (within steamapps). | |
| constexpr const char * | COMPAT_TOOLS_DIR = "compatibilitytools.d" |
| Directory containing compatibility tools. | |
| constexpr const char * | COMPATDATA_DIR = "compatdata" |
| Directory containing Proton compatibility data. | |
| constexpr const char * | CONFIG_DIR = "config" |
| Directory containing global Steam configuration. | |
| constexpr const char * | CONFIG_VDF = "config.vdf" |
| File containing global Steam configuration (Proton mappings). | |
| constexpr int | COVER_ART_TIMEOUT_SEC = 5 |
| Timeout for cover art image downloads. | |
| constexpr int | CURL_TIMEOUT_SEC = 5 |
| Timeout for general curl operations. | |
| constexpr const char * | FLATPAK_STEAM_PATH = ".var/app/com.valvesoftware.Steam/.local/share/Steam" |
| Flatpak Steam installation path. | |
| constexpr int | GAME_DETECTION_INTERVAL_SEC = 2 |
| Interval between game process detection scans. | |
| constexpr int | GAME_GRACE_PERIOD_SEC = 60 |
| Grace period for newly launched games before tracking them. | |
| constexpr int | GAME_VERIFY_POLL_MS = 500 |
| Polling interval when verifying game has started. | |
| constexpr int | GAME_VERIFY_TIMEOUT_SEC = 30 |
| Maximum time to wait for game process to appear after launch. | |
| constexpr int | LIBRARY_CACHE_VALIDITY_SEC = 60 |
| Validity period for library scan cache (seconds). | |
| constexpr const char * | LIBRARY_FOLDERS_VDF = "libraryfolders.vdf" |
| File containing library folder paths. | |
| constexpr const char * | LOCAL_CONFIG_VDF = "localconfig.vdf" |
| File containing per-user game settings (launch options, playtime). | |
| constexpr const char * | LOGIN_USERS_VDF = "loginusers.vdf" |
| File containing user login information. | |
| constexpr int | MAX_UNINSTALLED_GAMES = 100 |
| Maximum number of uninstalled games to show in library. | |
| constexpr int | POST_LAUNCH_WAIT_SEC = 2 |
| Wait time after launching game before checking process status. | |
| constexpr int | POST_SHUTDOWN_DELAY_MS = 1000 |
| Delay after Steam shutdown before attempting restart. | |
| constexpr int | PROCESS_POLL_INTERVAL_MS = 500 |
| Interval between Steam process status checks. | |
| constexpr int | PROTON_CACHE_VALIDITY_SEC = 300 |
| Validity period for Proton version cache (seconds). | |
| constexpr int | RESTART_MAX_ITERATIONS = 20 |
| Maximum iterations for restart polling (total time = iterations * interval). | |
| constexpr int | RESTART_POLL_INTERVAL_MS = 500 |
| Polling interval when waiting for Steam restart. | |
| constexpr int | SHUTDOWN_TIMEOUT_SEC = 15 |
| Maximum time to wait for Steam to shutdown before timeout. | |
| constexpr const char * | SNAP_STEAM_PATH = "snap/steam/common/.local/share/Steam" |
| Snap Steam installation path. | |
| constexpr int | START_TIMEOUT_SEC = 15 |
| Maximum time to wait for Steam to start before timeout. | |
| constexpr int | STEAM_INIT_WAIT_SEC = 2 |
| Wait time after Steam starts before launching games. | |
| constexpr const char * | STEAM_ROOT_ALT1 = ".steam/root" |
| Alternative Steam installation (symlink). | |
| constexpr const char * | STEAM_ROOT_ALT2 = ".steam/steam" |
| Alternative Steam installation (legacy). | |
| constexpr const char * | STEAM_ROOT_PATH = ".local/share/Steam" |
| Primary Steam installation directory. | |
| constexpr int | STEAM_START_CHECK_INTERVAL_MS = 500 |
| Delay when waiting for Steam to start during game launch. | |
| constexpr int | STEAM_START_MAX_WAIT_SEC = 10 |
| Maximum time to wait for Steam to start when launching game. | |
| constexpr const char * | STEAMAPPS_DIR = "steamapps" |
| Directory containing installed games. | |
| constexpr const char * | SYSTEM_COMPAT_TOOLS_PATH1 = "/usr/share/steam/compatibilitytools.d" |
| System compatibility tools directory (distro-provided). | |
| constexpr const char * | SYSTEM_COMPAT_TOOLS_PATH2 = "/opt/steam/compatibilitytools.d" |
| Alternative system compatibility tools directory. | |
| constexpr const char * | USERDATA_DIR = "userdata" |
| Directory containing user-specific data. | |
| constexpr const char * | VDF_BACKUP_SUFFIX = ".backup" |
| Suffix for backup configuration files. | |
| constexpr const char * | VDF_CLOSE_BRACE = "}" |
| constexpr size_t | VDF_MAX_FILE_SIZE = 10 * 1024 * 1024 |
| Maximum VDF file size to read (safety limit: 10 MB). | |
| constexpr int | VDF_MAX_NESTING_DEPTH = 32 |
| Maximum nesting depth for VDF file parsing (prevents infinite loops). | |
| constexpr const char * | VDF_OPEN_BRACE = "{" |
| Characters that indicate VDF section boundaries. | |
| constexpr size_t | VDF_READ_BUFFER_SIZE = 4096 |
| Buffer size for reading VDF configuration files. | |
|
constexpr |
Timeout for Steam Web API HTTP requests.
Definition at line 77 of file steam_constants.h.
|
constexpr |
Prefix for game manifest files.
Definition at line 166 of file steam_constants.h.
Referenced by SteamPaths::getAppManifestPath().
|
constexpr |
Command to check if Steam process is running.
Definition at line 176 of file steam_constants.h.
|
constexpr |
Command to find running Steam games by reaper process.
Definition at line 179 of file steam_constants.h.
|
constexpr |
Command prefix for launching Steam games.
Definition at line 188 of file steam_constants.h.
|
constexpr |
Command to gracefully shutdown Steam.
Definition at line 182 of file steam_constants.h.
|
constexpr |
Command to start Steam silently (no window).
Definition at line 185 of file steam_constants.h.
|
constexpr |
Directory containing installed games (within steamapps).
Definition at line 144 of file steam_constants.h.
Referenced by SteamPaths::getGameInstallPath(), SteamPaths::getProtonInstallPaths(), and SteamLibraryScanner::scanProtonVersions().
|
constexpr |
Directory containing compatibility tools.
Definition at line 135 of file steam_constants.h.
Referenced by SteamPaths::getCompatToolsPaths(), and SteamLibraryScanner::scanProtonVersions().
|
constexpr |
Directory containing Proton compatibility data.
Definition at line 147 of file steam_constants.h.
Referenced by SteamPaths::getCompatDataPath().
|
constexpr |
Directory containing global Steam configuration.
Definition at line 141 of file steam_constants.h.
Referenced by SteamPaths::getConfigPath(), SteamPaths::getLocalConfigPath(), SteamPaths::getLoginUsersPath(), and SteamLibraryScanner::scanProtonVersions().
|
constexpr |
File containing global Steam configuration (Proton mappings).
Definition at line 160 of file steam_constants.h.
Referenced by SteamPaths::getConfigPath().
|
constexpr |
Timeout for cover art image downloads.
Definition at line 80 of file steam_constants.h.
|
constexpr |
Timeout for general curl operations.
Definition at line 83 of file steam_constants.h.
|
constexpr |
Flatpak Steam installation path.
Definition at line 112 of file steam_constants.h.
Referenced by SteamPaths::getAllSteamRoots(), SteamPaths::getCompatToolsPaths(), and SteamPaths::isFlatpakSteam().
|
constexpr |
Interval between game process detection scans.
Definition at line 56 of file steam_constants.h.
|
constexpr |
Grace period for newly launched games before tracking them.
Must be >= GAME_VERIFY_TIMEOUT_SEC to avoid premature removal. Steam games take variable time to start (Proton shader compilation, etc.)
Definition at line 61 of file steam_constants.h.
|
constexpr |
Polling interval when verifying game has started.
Definition at line 48 of file steam_constants.h.
|
constexpr |
Maximum time to wait for game process to appear after launch.
Steam games need extra time because the steam command exits immediately and the actual game process (reaper) takes several seconds to appear.
Definition at line 53 of file steam_constants.h.
|
constexpr |
Validity period for library scan cache (seconds).
Definition at line 209 of file steam_constants.h.
|
constexpr |
File containing library folder paths.
Definition at line 154 of file steam_constants.h.
Referenced by SteamPaths::getLibraryFoldersPath(), and SteamLibraryScanner::scanProtonVersions().
|
constexpr |
File containing per-user game settings (launch options, playtime).
Definition at line 157 of file steam_constants.h.
Referenced by SteamPaths::getLocalConfigPath().
|
constexpr |
File containing user login information.
Definition at line 163 of file steam_constants.h.
Referenced by SteamPaths::getLoginUsersPath().
|
constexpr |
Maximum number of uninstalled games to show in library.
Definition at line 90 of file steam_constants.h.
|
constexpr |
Wait time after launching game before checking process status.
Definition at line 45 of file steam_constants.h.
|
constexpr |
Delay after Steam shutdown before attempting restart.
Definition at line 38 of file steam_constants.h.
|
constexpr |
Interval between Steam process status checks.
Definition at line 23 of file steam_constants.h.
|
constexpr |
Validity period for Proton version cache (seconds).
Definition at line 206 of file steam_constants.h.
|
constexpr |
Maximum iterations for restart polling (total time = iterations * interval).
Definition at line 35 of file steam_constants.h.
|
constexpr |
Polling interval when waiting for Steam restart.
Definition at line 32 of file steam_constants.h.
|
constexpr |
Maximum time to wait for Steam to shutdown before timeout.
Definition at line 29 of file steam_constants.h.
|
constexpr |
Snap Steam installation path.
Definition at line 115 of file steam_constants.h.
Referenced by SteamPaths::getAllSteamRoots(), SteamPaths::getCompatToolsPaths(), and SteamPaths::isSnapSteam().
|
constexpr |
Maximum time to wait for Steam to start before timeout.
Definition at line 26 of file steam_constants.h.
|
constexpr |
Wait time after Steam starts before launching games.
Definition at line 64 of file steam_constants.h.
|
constexpr |
Alternative Steam installation (symlink).
Definition at line 106 of file steam_constants.h.
Referenced by SteamPaths::getAllSteamRoots().
|
constexpr |
Alternative Steam installation (legacy).
Definition at line 109 of file steam_constants.h.
Referenced by SteamPaths::getAllSteamRoots().
|
constexpr |
Primary Steam installation directory.
Definition at line 103 of file steam_constants.h.
Referenced by SteamPaths::getAllSteamRoots().
|
constexpr |
Delay when waiting for Steam to start during game launch.
Definition at line 67 of file steam_constants.h.
|
constexpr |
Maximum time to wait for Steam to start when launching game.
Definition at line 70 of file steam_constants.h.
|
constexpr |
Directory containing installed games.
Definition at line 132 of file steam_constants.h.
Referenced by SteamPaths::getLibraryFoldersPath(), SteamPaths::getProtonInstallPaths(), SteamPaths::getSteamAppsPath(), and SteamLibraryScanner::scanProtonVersions().
|
constexpr |
System compatibility tools directory (distro-provided).
Definition at line 122 of file steam_constants.h.
Referenced by SteamPaths::getCompatToolsPaths().
|
constexpr |
Alternative system compatibility tools directory.
Definition at line 125 of file steam_constants.h.
Referenced by SteamPaths::getCompatToolsPaths().
|
constexpr |
Directory containing user-specific data.
Definition at line 138 of file steam_constants.h.
Referenced by SteamPaths::getUserDataDirectory().
|
constexpr |
Suffix for backup configuration files.
Definition at line 169 of file steam_constants.h.
Referenced by SteamLibraryScanner::writeSteamProtonVersion().
|
constexpr |
Definition at line 199 of file steam_constants.h.
|
constexpr |
Maximum VDF file size to read (safety limit: 10 MB).
Definition at line 96 of file steam_constants.h.
Referenced by readVdfContent().
|
constexpr |
Maximum nesting depth for VDF file parsing (prevents infinite loops).
Definition at line 195 of file steam_constants.h.
|
constexpr |
Characters that indicate VDF section boundaries.
Definition at line 198 of file steam_constants.h.
|
constexpr |
Buffer size for reading VDF configuration files.
Definition at line 93 of file steam_constants.h.