osx: bundle doesn't start if there's a stalled bitmask-app process.
In the osx bundles, I rename the frozen binary as 'bitmask-app', and the main bundle's called 'bitmask' - which is just a shell script wrapper that changes the working dir before launching.
If the previous process didn't close correctly (this can be verified by ps aux | grep [b]itmask-app
), the installed Bitmask.app refuses to launch - and user can see the icon bouncing briefly in the dock.
A proper fix for this would just kill the previous run before launching itself.
I think this is safe to do in osx, since I think the dock mechanism implies that the user wouldn't be launching the app by mistake if it's already running.