| Description: |
With some command line apps the menubar will be unresponsive when the app is
first launched. If the app is deactivated, say by clicking on the desktop, and
then reactivated the menu bar works correctly. Some command line apps exhibit
this behavior while others do not. There are cases where an app does this when
run on some machines but does not do it when run on other machines.
Amazingly enough, one way to demonstrate this behavior consistently is to run:
$ fossil diff -tk
This may be related to the use of TransformProcessType, which has been linked
to strange, and OS version-dependent behaviors of the menu bar. See
http://www.sheepsystems.com/developers_blog/transformprocesstype--bette.html
It is inappropriate to be using TransormProcessType here since the purpose
of that function is to convert between background and foreground processes.
Tk is not launched as a background process. It appears that Tk is relying
on some undocumented side effect of TransformProcessType instead of simply
setting the NSApplicationActivationPolicy.
|