ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
342 stars 36 forks source link

App launched at startup through login items on MacOS doesn't run properly #471

Open AmberSahdev opened 1 year ago

AmberSahdev commented 1 year ago

Hey,

Thanks for creating and maintaining py2app, it does wonders for prototyping ideas fast.

I'm on the latest release of py2app, python 3.6.8, and MacOS Monterey.

My app works perfectly when a user launches it manually, but when it is added to the "Login Items" on my mac, it loses all functionality that is not being served by the main thread.

i.e., every thread other than the main thread is not running, from what I can tell.

I have tried to see if the parent process is different when a user launches it vs when it's launched automatically at startup, but that is not the case. From what I can tell everything is identical, yet non-main threads are apparently not running.