Le Fri, 16 Mar 2018 04:47:36 -0500, Ryan Schmidt <[email protected]> a écrit :
> On Mar 15, 2018, at 23:31, Kevin Reid wrote: > > > On Thu, Mar 15, 2018 at 8:38 PM, Kenneth F. Cunningham 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.) > > Right. The app portgroup is intended for "proper Mac apps". > > https://lists.macports.org/pipermail/macports-dev/2011-August/015788.html > > For gPodder +x11 [1], I've added an <LSUIElement> entry in Info.plist to prevent an icon in the dock. With +quartz, it uses the py27-gtk-osx-application library to behave like a proper Mac app. [1] https://github.com/macports/macports-ports/blob/master/gnome/gpodder/Portfile#L88
