Printrun icon indicating copy to clipboard operation
Printrun copied to clipboard

Make the print thread in the printcore code a background thread (daemon)

Open ckasarda opened this issue 3 years ago • 1 comments

Would it be possible for the print thread in printcore.py to be changed to a daemonized thread, like with the startprint function? It would be nice if started the print command in the background instead and then run after the application is closed. Thanks! Otherwise, would there be a conflict that would emerge by doing so?

It would also be nice if the print start function had another boolean argument as to whether the user wanted to daemonize the print start thread or not. Would this be possible?

ckasarda avatar Mar 14 '21 20:03 ckasarda

How do you start the process? Is it by the provided source or from your own class? Running in background will make it harder to interact with it (e.g control-c). Can't you start a new thread yourself or tell the shell to put it to background with (& ending)?

volconst avatar Mar 17 '21 20:03 volconst