The attached patch fixes the issue.
It replaces g_idle_add(...) that immediately calls the hooks, with g_timeout_add_seconds (1, ...) that calls them a second later, when the symlink to the binary has been generated.
It worked in 100% of my tests.
The attached patch fixes the issue.
It replaces g_idle_add(...) that immediately calls the hooks, add_seconds (1, ...) that calls them a second later, when the symlink to the binary has been generated.
with g_timeout_
It worked in 100% of my tests.