Skip to content

About

Valve VDF command line editor

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

Repository files navigation

Steam Shortcuts Editor

Usage

steam-shortcuts-editor list ./shortcuts.vdf

will output:

4173909563 "Super Mario Odyssey"
3808027925 "Minecraft"
2900228243 "Garden Paws"
3342111099 "Animal Crossing: New Horizons"
3134436784 "DRAGON BALL FighterZ"
3702413278 "Mario Kart 8 Deluxe"
2817442984 "Mario Party Superstars"
3047893182 "Minecraft: Nintendo Switch Edition"
...
steam-shortcuts-editor edit ./shortcuts.vdf --json-path ./shortcuts.json --out ./shortcuts_dest.vdf --force

will load ./shortcuts.json and use it to update ./shortcuts.vdf and write the results to ./shortcuts_dest.vdf (overwriting)

steam-shortcuts-editor edit ./shortcuts.vdf --idx 0 --key app_name --val "My Custom Game" --out ./shortcuts_dest.vdf

will update ./shortcuts.vdf modifying the entry 0 and change appname into My Custom Game. It writes the results into ./shortcuts_dest.vdf (it fails if ./shortcuts_dest.vdf already exists).

Commands

  • list: List entries summary info. Features:
    • Table output with selectable columns.
    • JSON output.
  • edit: Update entries structure recreating .vdf shortcuts file. Features:
    • Load existing shortucts.vdf and modify it
    • Edit via multiple invokations to modify one single entry.prop.value per invoke.
    • Load JSON file as source to update or add new entries.
    • Save output into vdf file.
    • Overwriting protection

Help

Execute with help for more info.

Build / Develop

Develop

Dependencies:

  • strip 2.39.0+ GNU strip (GNU Binutils) to produce a clean release artifact.

Steam Deck actually has glibc 2.33 and we need 2.34 so link it statically.

  • rustup target add x86_64-unknown-linux-musl
  • or npm run install

Compile

  • Debug: cargo build or npm run build:debug
    • Artifact will be generated into target/debug/steam-shortcuts-editor
    • Run target in debug: cargo run or npm run debug
  • Release: cargo build --target=x86_64-unknown-linux-musl --release or npm run build:release
    • Artifact will be generated into target/x86_64-unknown-linux-musl/release/steam-shortcuts-editor

About

Valve VDF command line editor

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages