How sadabx/tost works
Purpose and Deliverables
TOST is a .NET 8 Steam companion that installs, configures, and safely manages Steam-related game manifests, Lua plugins, and backend tooling. It targets Windows and Linux: OpenSteamTool on Windows and SLSsteam on Linux. The primary product is an Avalonia desktop application; Linux also has a terminal entry point.
Entry Points and Product Shell
• Desktop startup and Avalonia application composition: Desktop/Program.cs, Desktop/App.axaml.cs, Desktop/App.axaml.
• The floating desktop drop target is the primary interactive surface: Desktop/FloatingIconWindow.cs.
• Linux CLI entry point: CLI/Linux/Program.cs.
• The retired WinForms implementation remains a reference/legacy product, isolated under Legacy/WinForms/Program.cs.
Shared Domain and Steam Discovery
Core owns non-UI behavior and Steam filesystem knowledge. Steam discovery detects standard and Linux/Flatpak installations, then exposes installation paths for downstream import and integration operations.
• Core/Steam/SteamDiscovery.cs
• Core/Steam/LinuxSteamDiscovery.cs
• Core/Steam/SteamInstallation.cs
Steam lifecycle actions, including restart coordination, are separated from discovery:
• Core/Steam/SteamRestartService.cs
• Desktop/Services/SteamLifecycleService.cs
• Desktop/Services/SteamProcessGuard.cs
Import Pipeline and Managed State
Dropped ZIP, manifest, and Lua inputs flow through inspection/parsing and import services before being routed into Steam/backend locations. The design boundary is important: Lua is parsed for declarations rather than executed, and existing files are backed up before replacement.
• Core/Imports/SteamImportInspector.cs
• Core/Imports/SteamImportService.cs
• Core/Imports/SteamAppManifestParser.cs
Managed installations are recorded and later enumerated, removed, or restored through:
• Core/GameManagement/ManagedGameService.cs
• Desktop/Views/GameManagerView.cs
• Desktop/Views/ImportView.cs
Platform Integration Providers
IIntegrationProvider abstracts the backend-specific operations and status. This keeps desktop/UI flows independent of whether Steam is managed through OpenSteamTool or SLSsteam.
• Core/Integrations/IIntegrationProvider.cs
• Core/Integrations/IntegrationStatus.cs
Windows-oriented backend provisioning is represented by:
• Core/Integrations/OpenSteamTool/OpenSteamToolInstallerService.cs
Linux’s SLSsteam provider owns install/repair, diagnostics, configuration inspection, conversion of imported data, recovery, and release-related behavior:
• Core/Integrations/SlsSteam/SlsSteamProvider.cs
• Core/Integrations/SlsSteam/SlsSteamInstallerService.cs
• Core/Integrations/SlsSteam/SlsSteamImportConversionService.cs
Linux Steam Configuration and Launch Boundary
For Linux, imported app IDs, overrides, and depot keys are converted into SLSsteam/Steam configuration. TOST supports native Steam launch wrappers and Flatpak per-user launch environment overrides; launch hooks are explicitly managed rather than embedded in the UI.
• Core/Integrations/SlsSteam/SlsSteamConfigService.cs
• Core/Integrations/SlsSteam/SlsSteamLaunchConfigurationService.cs
• Core/Integrations/SlsSteam/SlsSteamLaunchHookService.cs
Depot-key registration is a separate Steam-specific concern:
• Core/Steam/SteamDepotKeyService.cs
• Core/Integrations/SlsSteam/SlsSteamImportConfigService.cs
UI Workflows, Local Configuration, and Distribution
The Avalonia views expose integration setup, import, recovery, logs, settings, and game management, while desktop services bridge those workflows to Core and platform APIs.
• Desktop/Views/IntegrationView.cs
• Desktop/Views/RecoveryView.cs
• Desktop/Services/SlsSteamLaunchPlanFactory.cs
User preferences and Linux autostart are persisted/configured in Core; desktop startup registration is platform-facing:
• Core/Configuration/TostPreferences.cs
• Core/Configuration/LinuxAutostartService.cs
• Desktop/Services/StartupRegistrationService.cs
Release packaging targets Linux AppImage/deb/package formats and Arch AUR, with GitHub Actions release automation:
• .github/workflows/release.yml
• packaging/linux/build-packages.sh
• packaging/aur/tost-bin/PKGBUILD
Components 20
Desktop Product
Avalonia shell and workflow bridge.
- Avalonia startup
Desktop/Program.cs - App composition
Desktop/App.axaml.cs - Floating drop target · Primary interactive drop surface.
Desktop/FloatingIconWindow.cs - Desktop workflows · Integration, import, recovery, and game-management flows.
Desktop/Views/ImportView.cs - Steam lifecycle bridge
Desktop/Services/SteamLifecycleService.cs
Core Domain
Shared Steam, import, and managed-state behavior.
- Steam discovery · Finds standard, Linux, and Flatpak Steam installations.
Core/Steam/SteamDiscovery.cs - Steam restart coordination
Core/Steam/SteamRestartService.cs - Input inspection · Inspects ZIP, manifest, and Lua declarations without executing Lua.
Core/Imports/SteamImportInspector.cs - Safe import · Backs up existing files before replacement and routes imported content.
Core/Imports/SteamImportService.cs - Managed game state · Records, enumerates, removes, and restores managed installations.
Core/GameManagement/ManagedGameService.cs - Integration provider contract · Backend-independent operations and status boundary.
Core/Integrations/IIntegrationProvider.cs - OpenSteamTool provisioning
Core/Integrations/OpenSteamTool/OpenSteamToolInstallerService.cs - Depot-key registration
Core/Steam/SteamDepotKeyService.cs
Linux Integration
SLSsteam provisioning and launch configuration.
- SLSsteam provider · Owns install, repair, diagnostics, recovery, and release behavior.
Core/Integrations/SlsSteam/SlsSteamProvider.cs - Import conversion · Converts imported data for SLSsteam and Steam configuration.
Core/Integrations/SlsSteam/SlsSteamImportConversionService.cs - SLSsteam configuration · Applies app IDs, overrides, and depot-key configuration.
Core/Integrations/SlsSteam/SlsSteamConfigService.cs - Launch hooks · Manages native wrappers and Flatpak per-user launch overrides.
Core/Integrations/SlsSteam/SlsSteamLaunchHookService.cs - Linux CLI
CLI/Linux/Program.cs
Distribution
Linux packages and release automation.
- Release automation · Builds Linux release artifacts.
.github/workflows/release.yml - Linux packages · AppImage, deb/package, and AUR distribution inputs.
packaging/linux/build-packages.sh
Connections 19
- Avalonia startup → App composition: starts
- App composition → Floating drop target: hosts
- Floating drop target → Desktop workflows: opens workflows
- Desktop workflows → Input inspection: submits inputs
- Input inspection → Safe import: validated input
- Safe import → Managed game state: records installation
- Desktop workflows → Managed game state: manages
- Desktop workflows → Integration provider contract: uses
- Integration provider contract → OpenSteamTool provisioning: implemented by
- Integration provider contract → SLSsteam provider: implemented by
- Steam discovery → Safe import: provides Steam paths
- Steam discovery → SLSsteam configuration: locates installation
- Steam lifecycle bridge → Steam restart coordination: coordinates
- SLSsteam provider → Import conversion: converts imports
- Import conversion → SLSsteam configuration: applies data
- SLSsteam configuration → Depot-key registration: registers keys
- SLSsteam configuration → Launch hooks: configures launch
- Linux CLI → SLSsteam provider: invokes
- Release automation → Linux packages: builds with