Reclaiming Steam Deck "Other" Storage with a 355 KB Rust Engine & Decky Plugin
Uninstalling games on SteamOS or Linux often leaves behind gigabytes of orphaned Proton prefixes
(steamapps/compatdata/<appid>) and shader caches (steamapps/shadercache/<appid>)
inside the dreaded yellow "Other" storage bar. I built
steam-diet to analyze and clean them safely
with zero third-party Rust crates (~355 KB binary) and a native Decky Loader QAM plugin.
Three Real-World Pitfalls When Scanning Proton Prefixes
1. The dosdevices/z: -> / Symlink Trap
Every Wine/Proton prefix contains symlinks inside pfx/dosdevices/, including
z: pointing straight to /. A naive directory walker that follows symlinks
either miscalculates the host root filesystem or hangs. steam-diet uses
std::fs::symlink_metadata exclusively and never traverses symlink entries.
2. Non-Steam Shortcuts Have No appmanifest_*.acf
Testing directly on my Steam Deck caught a critical edge case: Non-Steam games added via
shortcuts.vdf (Heroic, Lutris, custom launchers) get generated 32-bit AppIDs with
bit 31 set (>= 0x80000000, e.g. 3096252364). Because they do not have
appmanifest_*.acf files, naive cleaners treat them as uninstalled orphans and wipe their
prefixes. steam-diet explicitly marks appid >= 0x8000_0000 as
NON-STEAM and leaves them untouched.
3. SteamOS ~/homebrew/plugins Permissions
On SteamOS, ~/homebrew/plugins is owned by root:root, so the 1-line
Decky installer elevates only for plugin extraction and systemctl restart plugin_loader,
while the plugin itself passes HOME = decky.DECKY_USER_HOME to the Rust CLI binary.
Architecture: Thin Decky UI + Zero-Dep Rust CLI
Instead of duplicating VDF/ACF parsing in Python, the Decky plugin calls
bin/steam-diet --json, renders a SteamOS-style multi-segment storage bar
(Active, Protected, Reclaimable Junk),
and prompts with a confirmation modal before invoking --clean --yes.