Kekun / gnome-games

Moving to gnome.org — A game manager application for GNOME
https://git.gnome.org/browse/gnome-games/
GNU General Public License v3.0
21 stars 4 forks source link

Track running Steam games #287

Open Kekun opened 8 years ago

Kekun commented 8 years ago

Steam games are currently the only games which never "stop" and hence which never come back to the collection when the game ends.

Tracking their state would allow to go back to the collection when the game ends and maybe more in the future.

Kekun commented 8 years ago

Steam run its games in a SteamChildMonit process. The /proc directory can be monitored to track the spawning processes. The process' name and parent can be retrieved from /proc/PID/stat and the its command line can be retrieved from /proc/PID/cmdline.

Solution 1:

Solution 2: