I wrote a small and simple PyQt4 app on Mac OS X 10.9 Mavericks which stays on the system tray and monitors a service after launching. And i can interact with it's context menu using mouse click. (Click on the system tray icon --> then context menu pop-up)
I pack my OSX bundle using below command:
python setup.py bdist_mac --iconfile=myapp.icns
It is OK to run after i packed it as myapp.app bundle using cx_Freeze(4.3.2). But, once i signed it using the following command:
$ codesign --entitlements my-entitlements-file.plist -s "3rd Party Mac Developer Application: my-developer-id" myapp.app
After that, although i could still launch this osx bundle, but the context menu of it has gone! No matter how i click on the system tray icon, it just has no menu pop-up.
That means, the behavior of this osx bundle generated by cx_Freeze has been changed somehow.
You may ask why i run the above codesign command? Because before upload to Apple's Mac App Store, apps need to be signed & sandbox-ed by Apple's codesign utility. (Yes, that is a rule of Apple.)
I am not sure if its proper to report here. But i search a lot indeed, and program written in Python can not be signed in Xcode, so i have no idea how can i fix this, i am stuck for couple of days already. so please bear me. Thanks.