Ever needed to recreate all of your Steam shortcuts? Maybe you forgot to back them up when reinstalling your OS, or just never created them in the first place...
If you have a large library of installed games and you don't want to manually create the shortcut for each one, then this is the tool for you!
Steam now supports this through selecting multiple library games > Manage > Create Desktop Shortcuts. It can't, however, add them to the start menu for you automatically. This tool can!
-
This tool is currently Windows-only. But I might take the time to add Linux/macOS support if requested!
-
The shortcuts created are .url links, just like the ones Steam creates - this is because I can't tell which .exe is the one that launches the game, plus Steam sometimes likes to give you launch dialogues
- You need Python 3.6 or newer installed (Python 3.8+ is recommended).
- Your Steam profile must have game library set to publicly visible.
- Install the requirements
pip install -U -r requirements.txt
- From the command-line, PowerShell or equivialent terminal, run
python steam_shortcuts.py
.- If you want the shortcuts to go in your Start Menu, make sure to run this as an admin.
- Follow the prompts to create shortcuts with or without icons. You'll need to enter your Steam name, this is just used to cross reference the games you own for their icon file.
- The shortcuts will be created in
./shortcuts
, relative to wherever the script was run from, or the Start Menu if requested.
- Checks your registry for the Steam install folder
- Reads
steamapps/libraryfolders.vdf
to find out where all your Steam libraries are located - For each library, parse all the
appmanifest_xxx.acf
files for game names and install locations, where xxx is the appid of an installed game - For each game, check if an icon already exists in the game's installation folder - the icon is downloaded by this tool, so it won't exist if you haven't run it before
- For all missing icons, download them if the user requests
- For each game, now create the URL shortcuts to
steam://rungameid/{appid}
, set the icon if it exists, or blank if the user asks for icon-less shortcuts - Done! No tidying up is done since the icons are kept in the game folders for use by each shortcut. I guess things might break if you uninstall the game, but they're just shortcuts :)
- The icons are currently LOW res due to the SteamAPI not providing a high quality link.
- Your Steam account must own the games for the tool to fetch the icons. It can still create icon-less shortcuts if you want though.
- It will try to use your username to retrieve your Steam profile & ID. If you set a custom profile URL you should enter that (the end ID-part) as your username.
- It only supports Windows, and does simple checks for sanity like current folder etc. - if you don't follow the usage instructions (or if you do) and it breaks something, don't blame me (all it does is write icon files and create shortcuts)
- Not all icons created may be usable, like Steamworks Redist, Proton, etc.