how to use pystray on MacOS to minimize python code to tasktray and run in background?
i tried to use icon.run() and it successfully minimize to tasktray but the program hold. it is only resume when i click and reopen the window. i also tried run_detached() but it crashed. error said something like "the function must be called with the GIL held, but the GIL is released"