You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than having a massive database of steam games and have to update it constantly, I was thinking why not get the information from steam?
Steam stores a appmanifest_<id>.acf file in the steamapps/ directory for all the installed games. All you would need to do is iterate through them, pull out the id and name, and grep it into ps to find out if that game is running.
The acf files are essentially just json files:
e.g.
Similarly, you can grab all the library folders to scan from libraryfolders.vdf (found in the default steamapps folder) ((Edit: Or steam/config/libraryfolders.vdf))
This approach should work for all standard steam games. I haven't yet found where it stores the ids/names for non-steam games, but with that this should be 100% of the time using only what you have locally available on the user's system.
The text was updated successfully, but these errors were encountered:
Rather than having a massive database of steam games and have to update it constantly, I was thinking why not get the information from steam?
Steam stores a
appmanifest_<id>.acf
file in the steamapps/ directory for all the installed games. All you would need to do is iterate through them, pull out the id and name, and grep it into ps to find out if that game is running.The acf files are essentially just json files:
e.g.
Similarly, you can grab all the library folders to scan from
libraryfolders.vdf
(found in the default steamapps folder) ((Edit: Orsteam/config/libraryfolders.vdf
))Example command to check if Voices of the Void (non-steam game) is running:
This approach should work for all standard steam games. I haven't yet found where it stores the ids/names for non-steam games, but with that this should be 100% of the time using only what you have locally available on the user's system.
The text was updated successfully, but these errors were encountered: