Okular blocks/hangs on print function
Bug
Currently, when printing a file (to a printer using lpr), okular blocks, and
- Becomes unresponsive
- No new files are opened, they will open only after it becomes responsive
Possible solution
I thought it should be some call which is blocking on the main thread, so looking for it, I found this call:
https://invent.kde.org/graphics/okular/-/blob/master/core/fileprinter.cpp#L141
I think, instead of calling doPrintFiles
should happen in another process (I am assuming, the pop-up window is a different process). I can't fix it, since I just don't know much Qt as of now :)