Possible fix for crash on some linux systems in Qt 5 with --detach

Do the fork() before loading any Qt modules.