r/deckyloader • • 15h ago

Plugin Showcase Cartridge — a Decky plugin that hot-swaps non-Steam games with your SD card, no Steam restart

Thumbnail
gallery
28 Upvotes

I'd wanted to build this for a long time, but I kept getting stuck. Studying SteamOS by hand took ages, and even after testing something I couldn't always be sure my conclusions were right.

So I installed an AI agent, Claude, right on my Steam Deck and connected to it through Remote Control from the Claude app on my tablet. Now I explore SteamOS together with it and check everything straight away with tests run from the console: how the system behaves, how it reacts to a card being inserted or pulled out, what Steam actually does under the hood.

I do all of this carefully. I gave the AI a set of strict rules it's not allowed to break:

• never do anything that could brick the Deck or touch the system core;

• no root and no sudo;

• never write to Steam's own files;

• never read login data, tokens or passwords;

• work only inside its own folder;

• don't kill processes without my permission;

• ask me before every change.

The problem

The Deck already hot-swaps Steam games on SD cards: pull the card and they disappear, put it back and they're there. But that's only for Steam games.

Non-Steam games (emulators and ROMs added via EmuDeck / Steam ROM Manager) are just shortcuts, and Steam stores them separately for each account. Pull the card and they stay in your library as dead tiles. Use several cards and the library turns into a mess. A second account on the same Deck doesn't see those games at all, and another Deck knows nothing about what's on your card.

The dead end

My first approach was a script that edited Steam's config to hide those shortcuts. It never worked reliably. Testing on the Deck showed why: Steam no longer keeps the "hidden" flag in localconfig.vdf. It lives in a cloud-synced collections file, and Steam overwrites any edits to it. So editing files was a dead end, and a risky one.

The trigger

Instead of touching files, the plugin asks Steam itself:

• The backend (no root) listens for udev events when a card is inserted or removed, with a slow poll as a backup.

• It works out which shortcuts belong to that card.

• The frontend calls Steam's own client API. It's the same action as pressing "Hide" in the library, so it applies instantly, with no Steam restart and nothing written to Steam's files.

Result: pull the card and its games vanish from the library right away. Insert it and they're back in 4–6 seconds, which is the time SteamOS takes to check the card. Everything works without restarting the Steam client. Games you hid manually stay hidden.

Cartridge

The plugin has a retro look and supports 14 languages. Hide/show on card swap already works. In progress:

• Make a cartridge: write the game list and covers onto the card itself (into its own folder; ROMs are untouched). Give the card to a friend, they insert it, confirm, and the games show up on their Deck with covers. No SRM, no setup.

• Family mode (optional): games from the card show up for every Steam account on the Deck. With it off, new games from someone else's card only appear after you confirm.

• Missing covers fetched from SteamGridDB.

Status

The plugin is currently being tested and polished. It's not public yet. Questions and ideas are welcome, especially if you juggle several SD cards.