Start a GUI process in Mac OS X without dock icon

后端 未结 2 1074
遥遥无期
遥遥无期 2020-12-06 14:37

I have an application that normally runs with a standard graphical interface. However, for certain long-running tasks, it spawns additional processes of the same application

2条回答
  •  执念已碎
    2020-12-06 15:05

    import AppKit
    info = AppKit.NSBundle.mainBundle().infoDictionary()
    info["LSBackgroundOnly"] = "1"
    

    This code works for my Non-GUI background python script.

提交回复
热议问题