My goal is to launch a C program and only a C program with X. I can't use the startx as a wrapper trick, so I'm using xinitrc. When I used xinitrc to start lxterminal, it works flawlessly. So just: #!/bin/sh lxterminal However, replacing lxterminal with my c program causes the connection to the X se...