I have a global pre-launch script that pauses my gif wallpaper and a global post-exit script that resumes the wallpaper. I have “Minimize client when a game is launched” enabled. When I run a game (with Steam as the runner, although I have not tested this with a non-Steam game yet), Lutris minimizes for a moment, but reopens after a few seconds. Once it reopens, the “Stop” button in the bottom left of the screen changes to say “Play,” and my post-exit script runs, even though the game is still running. Is this expected behavior or a bug? I am more concerned about my post-exit script; I would like for it to run when I have actually closed the game I am playing.
Here’s a video of the behavior: https://vimeo.com/1235628201?share=copy&fl=sv&fe=ci