When using the GUI, set stdin to /dev/null in subprocesses