Skip to content

Instantly share code, notes, and snippets.

View Dragonink's full-sized avatar

Tanguy Dragonink

View GitHub Profile

Steam Shortcuts file and it's composition

Non-game Steam library entries are stored in a special file called shortcuts.vdf.

The file is located in the (steam folder)\userdata\(steamid)\config folder for each Steam user. It is encoded using ANSI formating.

Every file starts with the header \x00shortcuts\x00, followed by all shortcut entries.

After all entries, the file is terminated by \x08\x08.

@ylxdzsw
ylxdzsw / ffplay.desktop
Created February 15, 2020 18:35
Desktop file for using ffplay as the video/audio player
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=FFPlay
Exec=ffplay %U
NoDisplay=true
Categories=AudioVideo;Audio;Video;Player;
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/smil;application/smil+xml;application/vnd.apple.mpegurl;application/vnd.ms-asf;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;application/x-extension-m4a;application/x-extension-mp4;application/x-flac;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktime-media-link;application/x-quicktimeplayer;application/x-shorten;application/x-smil;application/xspf+xml;audio/3gpp;audio/3gpp2;audio/aac;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/dv;audio/eac3;audio/flac;audio/m4a;audio/midi;audio/mp1;audio/mp2;audio/mp3;audio/mp4;audio/mpeg;audio/mpegurl;audio/mpg;audio/ogg;audio/opus;audio/prs.sid;audio/scpls;audio/vnd.rn-realaudio;audio/wav;audio/webm;audio/x-aac;