ghost1227/cdm — pull request #21 by polyphemus (2013-03-24 23:11:30+00:00)
Title: Small change to call to startx, run in subshell.

`cdm` didn't do/start anything without this change on my system, Ubuntu 12.10, `$BASH_VERSION=4.2.37(1)-release`.

After being able to trace it back to `setsid startx ...` line, the problem seemed to be the fork of `setsid`. If I didn't fork (no `&`), it worked but the script waited for return of setsid/startx.

This patch backgrounds the subshell in which `setsid` runs, which works for me but it seems it is quite finicky about the setsid command.

It might be helpful if there was some discussion about what works on different systems (and maybe why it works/doesn't work).