This is an OS bug, and should be filed as one. You risk creating an infuriating user experience if you steal focus on startup. As an OS bug, users will be accustomed to the experience and know to bring your app to the front after the first launch; when the bug is fixed, your app will start working without you having to add dodgy workaround code that can focus your app when the user didn't request it.