Hi! After upgrading my Macbook Pro M1 Pro to MacOS Sequoia 15.0 when I run my python backend code i show in dock all python process as Exec Icon. Now work with backend so hard, because all my dock in this icons( How I can fix this? Support dont help me, because resinstall and e t c dont work for me.
Python processes showing up in the Dock is a pretty common pathology. It’s typically caused by the Python program using GUI frameworks, either directly or indirectly. Those establish a connection to the window server [1] which is what causes the program to appear in the Dock.
There are two ways to get around this:
-
If you want the program to run outside of a GUI context, you need to track down what’s connecting to the window server and stop it from doing that. Programs running outside of the GUI context — for example, a
launchd
daemon — can’t safely use the window server. -
If you’re happy with the program being restricted to use within a GUI context, you can package it in a bundle and add the
LSBackgroundOnly
property to itsInfo.plist
. This will prevent the program from showing up in the Dock, even after it’s connected to the window server.
For a more detailed explanation of this stuff, and specifically the concept of how execution contexts work on macOS, see Technote 2083 Daemons and Agents.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Well, it’s more complex than that, but I’m explaining this in terms of the old school terminology that’s in TN2083.