XWindow 启动过程备忘(部分)
(2006.05)
# /etc/X11/xinit/
* xinitrc
# common code for Xsession and xinitrc scripts
** xinitrc-common
# merge in keymaps of system key map and user key map
# run all shell scripts files in xinitrc.d
# input methud
*** xinput.sh
# Load up the user and system locale settings
**** /etc/profile.d/lang.sh
# try to source ~/.xinput.d/ll_CC or /etc/X11/xinit/xinput.d/ll_CC to
# setup the input method for locale (CC is needed for Chinese for example)
**** ~/.xinput.d/default
**** /etc/X11/xinit/xinput.d/zh_CN or default
# to set XIM XIM_PROGRAM XIM_ARGS XMODIFIERS GTK_IM_MODULE QT_IM_MODULE
**** gnome-im-settings-daemon >/dev/null
# execute XIM_PROGRAM
"$XIM_PROGRAM"
#Configures virtual key bindings
*** xmbind.sh
**** /usr/X11R6/bin/xmbind
# set ssh-agent
# start user clients, or system defaults.
if
** $HOME/.Xclients
else if
** /etc/X11/xinit/Xclients
# check to see if the user has a preferred desktop
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DESKTOP" = "GNOME" ]; then
*** exec gnome-session
elif [ "$DESKTOP" = "KDE" ]; then
*** exec startkde
fi
fi
*** exec /usr/X11R6/bin/twm
else
** /usr/X11R6/bin/twm
fi
(2006.05)
# /etc/X11/xinit/
* xinitrc
# common code for Xsession and xinitrc scripts
** xinitrc-common
# merge in keymaps of system key map and user key map
# run all shell scripts files in xinitrc.d
# input methud
*** xinput.sh
# Load up the user and system locale settings
**** /etc/profile.d/lang.sh
# try to source ~/.xinput.d/ll_CC or /etc/X11/xinit/xinput.d/ll_CC to
# setup the input method for locale (CC is needed for Chinese for example)
**** ~/.xinput.d/default
**** /etc/X11/xinit/xinput.d/zh_CN or default
# to set XIM XIM_PROGRAM XIM_ARGS XMODIFIERS GTK_IM_MODULE QT_IM_MODULE
**** gnome-im-settings-daemon >/dev/null
# execute XIM_PROGRAM
"$XIM_PROGRAM"
#Configures virtual key bindings
*** xmbind.sh
**** /usr/X11R6/bin/xmbind
# set ssh-agent
# start user clients, or system defaults.
if
** $HOME/.Xclients
else if
** /etc/X11/xinit/Xclients
# check to see if the user has a preferred desktop
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DESKTOP" = "GNOME" ]; then
*** exec gnome-session
elif [ "$DESKTOP" = "KDE" ]; then
*** exec startkde
fi
fi
*** exec /usr/X11R6/bin/twm
else
** /usr/X11R6/bin/twm
fi