screen win: sleep 2 seconds after registration

It seems like there is slight delay before it can be used and since the
child process is started immmediately, wait for 2 secons to ensure.
This commit is contained in:
Martin Pulec
2023-10-26 15:01:54 +02:00
parent 9c8b8977c2
commit 610a49c190

View File

@@ -231,6 +231,7 @@ static int register_screen_cap_rec_library(bool is_elevated) {
if ((INT_PTR) ret > 32) {
log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Module installation successful.\n");
log_msg(LOG_LEVEL_NOTICE, MOD_NAME "If you want to unregister the module, run 'uv -t screen:unregister'.\n");
sleep(2);
return 1;
}
}