Closed aizakow closed 3 months ago
I'm sorry to hear that you are experiencing this problem.
I'm not entirely sure when Steam shows the "first time use" dialog, it seems pretty random to me. Some questions:
If I have understood the issue correctly, I could attempt to release a fix in the next version (whenever it will be released...). I see three potential solutions:
1 and 2) Now that you mention it I don’t think it is only when the dialog appears. Rather it is when Glossi initializes, so I suspect it’s the glossi overlay itself stealing focus. 3) I am using the overlay. It seems to happen whether I am using it or not. 4) I’m using the latest, 0.1.2.0
Thanks for your prompt reply!
It it helps, I have found one game that triggers this seemingly 100% of the time, which is the Game Pass version of Eastward. If you have Game Pass maybe this could help diagnose the issue.
This is very late, but it should hopefully be fixed in this experimental version: https://github.com/LemmusLemmus/GlosSI-Integration-Playnite/issues/23#issuecomment-1704314198.
The new version blocks calls to SetForegroundWindow()
and then relies on what I previously described as solution 1, by simply waiting for GlosSITarget to finish starting before starting the game (since you wouldn't want to block the game from becoming the foreground window). The wait time has (hopefully) been reduced however, since Steam out of nowhere started supporting the steam://launch/<id>
command for non-Steam games as well, and that apparently does not show the annoying "Launching..." window, which made starting games slower for some reason. I have also looked at solution 3 and it is definitely possible, so that option is not entirely off the table for a later version.
Often when I use a Glossi shortcut in Playnite, the game starts and then, after a delay, the glossi overlay kicks in. Sometimes as a result, the steam "first time use" dialog will then trigger and the game will lose focus, and the only way to get back to the game is with a mouse. Is there any way to make the glossi overlay launch simultaneous with the game itself, as it does when using a glossi shortcut on its own?