OK, I’ve written a qr exec service. The client machine calls it, dom0 has a handler in /etc/qubes-rpc called block.capture. The handler calls a script (which pops up a dialog, etc).
I would like to just have the qr call return immediately; the script will trigger other actions. But backgrounding (with &), even though it’s truly in the background (commands in block.capture after the backgrouned script execute immediately), block.capture won’t exit until the other script is done executing. So for some reason it’s hung up waiting for the child process to exit. I’ve tried nohup, i’ve tried disown.
If I call the script with spawn, it doesn’t execute and returns error 127 (and no message as near as I can tell).