-   Linux - General (
-   -   Recursive trace of bash scripts needed (

CollieJim 07-10-2007 11:05 AM

Recursive trace of bash scripts needed
I'm trying to track down a problem with starting KDE. If ~/.xinitrc is present, startx starts the display manager but not the window manager. I just get a black screen with a white X in the middle. If ~/.xinitrc is missing, KDE starts properly.

set -x enables a trace of commands, but it's not passed on to called scripts.

Is a recursive trace facility available?


I'm using Gentoo 2007.0,, KDE 3.5.5, xorg 7.1.

bathory 07-10-2007 03:40 PM


Is a recursive trace facility available?
I don't know what you mean by recursive trace, but if you add at the end of .xinitrc a line like:

kde will be used as your wm. Of course the path to startkde may vary for your distro.

Matir 07-10-2007 03:53 PM

My guess is that something in .xinitrc is not returning properly to the calling script. If you post it, we might be able to take a look at it and tell you what's going on. Otherwise, you could change the shebang line on it to something like "#!/bin/bash -x".

CollieJim 07-13-2007 10:56 AM

Thanks for the replies.
I did find that I needed to add startkde to the end of .xinitrc.

What I was looking for was something like -x that got passed to any scripts that were called so that each script did not have to be modified - just the top level one.

All times are GMT -5. The time now is 11:01 AM.