On Thu, Mar 15, 2018 at 8:38 PM, Kenneth F. Cunningham < [email protected]> wrote:
> The dock icon on the ports I launch via the bash script generate via the > app PG seem to never stop bouncing -- they bounce and bounce, until the > application is finally quit, and then disappear. The app seems to work just > fine. (I use these mainly for gtk2 and gtk3 apps with GUIs, like pan2 and > calculate-gtk, and I use them with +x11 rather than +quartz). > > Anyone have any insight into this bizarreness? Dock icons stop bouncing when, loosely speaking, the process starts up its macOS-style event loop (and could then e.g. respond to quit requests from the Dock). X11 apps never have that type of event loop, so the bouncing will not stop. The only fix I know of without modifying the programs is to use a small shim process which either (1) "is a proper Mac app" (setting up the event loop and perhaps doing niceties like converting macOS quit events into signals) or (2) forks the real process and immediately exits (which means the Dock icon also disappears). (Disclaimer: I am more "power user" than "macOS developer" today and my description may be inaccurate in the details.)
