LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Scripts for Starting Window Manager (http://www.linuxquestions.org/questions/red-hat-31/scripts-for-starting-window-manager-94572/)

jasonmiu 09-19-2003 02:03 PM

Scripts for Starting Window Manager
 
Hi all,

I 've a question about the window manager initialization. I can't recognize how those scripts work. (Yes, they are working, very well. I just want to know "how" :p )

All I know about X is when I start it by "startx", it runs xinitrc. If I start it by XDM/GDM/KDM, it runs "Xsession" . (I am not sure I am right, and this why I post here. :scratch: )

I enter to my KDE by GDM (I am running RH9). But I found a interesting ps-tree, like this:
------------------------------------------------------------------
UID PID PPID C STIME TTY TIME CMD
root 828 1 0 Sep19 ? 00:00:00 /usr/bin/gdm-binary -nodaemon
root 871 828 0 Sep19 ? 00:00:00 /usr/bin/gdm-binary -nodaemon
root 2617 871 0 Sep19 ? 00:00:14 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7
jasonmiu 2701 871 0 01:26 ? 00:00:00 /bin/sh /usr/bin/startkde
jasonmiu 2718 2701 0 01:26 ? 00:00:00 /bin/bash /etc/X11/xdm/Xsession
jasonmiu 2746 2701 0 01:26 ? 00:00:00 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
--------------------------------------------------------------------

I found that the process "startkde" is spawned by GDM directly, then the startkde spawns "Xsession" and "Xclients".

I 've tired to trace those scripts, however I can't understand why the ps-tree like that -- why shouldn't Xsession spawns startkde?

Thank you very much.


All times are GMT -5. The time now is 06:27 AM.