valevalorin
Posts: 7
Joined: Thu Oct 09, 2014 4:06 pm

.xinitrc not executing properly

Mon Nov 10, 2014 10:17 pm

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:

Code: Select all

#!/bin/sh
lxterminal
However, replacing lxterminal with my c program causes the connection to the X server to be lost:

Code: Select all

#!/bin/bash
./c.exe #also tried full path
Also, any attempt at launching lxterminal and having it run the command to execute my c program have also failed, with x crashing/failing. I've tried the --command option and the -e option.

Anyone have any idea as to how to do this?

Return to “General discussion”