Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Stop client after exiting game #1721
When starting a game from the commandline via
(Btw: On windows
Ran into this when I was googling the same issue. I'm using a "Attract-Mode" as my front end, and I want it to know when the app closes.
If you're on Linux, here's a hack I'm using to accomplish this. It's a bash script that will note the name of the current active window (your launcher application or terminal or whatever), launch the steam app, wait a configurable amount of time for it to actually open a new window, then check the name of the active window every second. Once the name of the active window matches your original launcher application (after the game exists), the script will exit.
This will keep the script "executing" until the game exits. If you want to completely kill steam, add the following to the end of the script right before "exit".
Super hack? Yes. Does it work in my case? Yes.
I'm sure this won't handle everyones' use cases, but it may be a start. Hopefully this will be appropriately supported in the future.
This is my solution.
Just installed Steam recently, and it was annoying me. I made this batch file for BF1 a couple of years ago to shut down Origin after game exit, and it works for Steam also. Its not pretty, but it works.
It waits 20 secs to connect to and update Steam, (or set longer if your'e having connection issues) and then just runs a loop to check if your game is still running, and then when it isnt, to kill Steam. Simples.
EDIT: Apologies, came here just looking to see if anyone else had same issue as me. Just noticed its a Linux forum :)
Same here. I added the Steam client to EmulationStation, but until Steam closes I am not able to get back to Emulationstation after I finished playing the game.