canonical / steam-snap

Steam as a snap
https://snapcraft.io/steam
76 stars 9 forks source link

Allow applications outside of Steam Snap to detect if Steam is running #216

Open Agoxandr opened 1 year ago

Agoxandr commented 1 year ago

Is your feature request related to a problem? Please describe. External applications like game engines (I use Unity with Facepunch Steamworks) can't detect if Steam is running. Which means I can't test the game.

Describe the solution you'd like Not sure if there is a way to fix this that would make sense.

Describe alternatives you've considered I'm forced to use the Debian version. I checked every permission but that doesn't seem to change anything.

ZoopOTheGoop commented 1 year ago

This seems to be generally done via SteamAPI_IsSteamRunning(), and I'm not sure what it does. We don't have source access to the API, so we may need to bring this up with Valve. Running ps will show a process named steam (and assorted other subprocesses) so it should in principle be detectable in some ways.