I have an application that usually works with a standard GUI. However, for some lengthy tasks, it starts additional processes of the same application, which run in "script" mode, where I control it from the parent process. Everything works fine, except that for each child process I get another dock icon that appears for a second or two and then disappears.
Is there a way to launch the application sometimes without the application icon appearing on the dock? I cannot edit the info.plist file or anything, because usually I want a dock icon. The parameter must be set by changing the property in the process or through a command line parameter. I have full control over the source code of the application. It is written in C ++ (Qt), but the solutions intended for the Cocoa native library are fine.
If I put this code in a separate application, it will cause serious duplication, so I would prefer to keep it as it is. I cannot run lengthy tasks in the background thread because they do what needs to be done in the GUI thread. (In Qt, you cannot reliably use fonts, pixmaps, or display SVG content on a QGraphicsScene in the background stream.)
Any solutions?
c ++ multithreading qt macos
Dave Mateer Jul 22 2018-11-22T00: 00Z
source share