Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-10-2007, 11:05 AM   #1
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 524

Rep: Reputation: 19
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.
Old 07-10-2007, 03:40 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
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.
Old 07-10-2007, 03:53 PM   #3
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
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".
Old 07-13-2007, 10:56 AM   #4
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 524

Original Poster
Rep: Reputation: 19
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with recursive bash script me4linux Programming 6 03-20-2007 05:46 AM
Basic GUI (non-x) needed to run bash scripts AP81 Programming 8 02-09-2007 09:38 AM
Help with a recursive chmod script in bash lowpro2k3 Programming 11 07-25-2005 07:03 PM
Recursive search in bash scripting ! zulfilee Linux - Software 3 12-12-2004 10:40 PM
modify bash script - recursive action xscousr Programming 6 09-17-2003 01:52 PM

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration