demon threads don't work to launch gui on linux
I'm using manjaro linux. and whenever I try to write something like
or some other gui program, the thread stops, and the program doesn't run.
If I run without & it runs, and if I demonise a non gui thread it runs happily.
I'd like to be able to push ^d to be able to quit the terminal while the demon is running and have it still running.