Closed xslushedx closed 1 year ago
How long does your emulationstation typically take to start? The launcher assumes that the launch application has failed to start if it doesn't grab the window focus after 7 seconds -------- Original Message -------- On Mar 10, 2023, 4:59 AM, xslushedx wrote:
If a program takes longer to start, the flex launcher remains visible in the foreground. I have that, for example, with emulationstaion. because i have a big rom collection it takes a moment to start.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
With a fresh Windows 10 start, emulationstation actually needs seven to eight seconds to start. That is of course very long. I have now created a batch file to launch it and flex-launcher is working fine.
is the waiting time configurable?
is the waiting time configurable?
No, but it would be relatively easy to add one. Are you having this same issue?
Yeah, unfortunately I have a game that takes around 10 seconds and even the screen is showing the game, the focus is kept on flexlauncher :/
If you could guide me on where to look around for implementing this feature, I would be more than happy to submit a PR! :)
@sekmo The timeout value is controlled by a macro defined here. You will need to convert this into a config option.
Config
struct declaration (in launcher.h
)config/config_settings.cmake
config/launcher_config.h.in
launcher.c
config/config.ini.in
util.c
. The setting facing the user should be in seconds, but the program uses milliseconds internally so you'll need to multiply it by 1000.If you are not able to do this, then let me know and I can do it.
Omg thank you so much! (Sorry if I didn't get back on this, I was eager to help out but I didn't have in the last period :/)
If a program takes longer to start, the flex launcher remains visible in the foreground. I have that, for example, with emulationstaion. Because i have a big rom collection it takes a moment to start.