The issue this came from:
after .5 seconds, the program says steam had an error starting, because it cant find /proc/$STEAM_PID. And then it exits... even though steam is still starting... but all checks to see if steam is running fail, because the window it not there YET.
why are you starting steam in the background, and then checking if steam is still running? It would be way simpler to just not start it in the background.
That's all I changed here. The Steam command is not appended by & anymore, and all checks if steam is still running are commented out.
Another way would be to check if steam is running using pgrep. you could also save the process id and use wait to wait for it.
The issue this came from: after .5 seconds, the program says steam had an error starting, because it cant find
/proc/$STEAM_PID
. And then it exits... even though steam is still starting... but all checks to see if steam is running fail, because the window it not there YET.why are you starting steam in the background, and then checking if steam is still running? It would be way simpler to just not start it in the background.
That's all I changed here. The Steam command is not appended by
&
anymore, and all checks if steam is still running are commented out.Another way would be to check if steam is running using pgrep. you could also save the process id and use
wait
to wait for it.