Found 2 possible candidate:
The ideal scenario is:
- report the terminal app bundle id when debugging from in terminal
- report the packaged app bundle id when open a release app by Finder or start
This way the required extra --bundle-id=* param can be removed for --mode-2
Found 2 possible candidate:
[[NSBundle mainBundle] bundleIdentifier]https://stackoverflow.com/questions/8883102/obtain-bundle-identifier-programmatically
[[NSWorkspace sharedWorkspace] runningApplications]https://stackoverflow.com/questions/8348627/what-is-the-correct-way-to-identify-the-currently-active-application-in-osx-10
The ideal scenario is:
This way the required extra
--bundle-id=*param can be removed for--mode-2