Program in .xinitrc does not start


Forum: Apps
Topic: Program in .xinitrc does not start
started by: RigasW

Posted by RigasW on May 27 2007,10:08
Hello,

I read a lot about remastering in this forum and almost succeeded with my remastering-project.

One thing is still not working:

Whenever dsl starts, I want the following script to run:

/home/dsl/.startgit.sh

So I added the following line to  .xinitrc:

sh /home/dsl/.startgit.sh &

But it does not start.

When I execute the line as user dsl in the dsl home dir, it DOES work.

BTW: I know that DSL uses my modified .xinitrc, because I uncommented # dillo ... and dillo does not start any more.

Any ideas?

Rigas

Posted by mikshaw on May 27 2007,11:04
Where did you put that command, exactly?  It must be above or within the "case $DESKTOP in" part (above would be the easier choice), or it won't run until after X closes, or not at all if it requires X.
Posted by RigasW on May 27 2007,11:52
Hello,

thanks for your fast answer ...

I found what was wrong:

The script is actually started, and tries to start a java program.
But at that time, java/bin is not in the path.

So I inserted

export PATH="${PATH}:/ramdisk/opt/jre1_5_0/bin"

at the top of .xinitrc ...

and now it works.

Thanks again.

Rigas

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.