Gnome2 session 启动过程概述
gnome-session first looks around for the session file which contains the
programs to load and the order they need to be loaded. I think It first
tries
~/.gnome2/session
and if there isn't one there, then reads in default
values from $DATADIR/gnome/default.session. Then it looks in
~/.gnome2/session-manual
for user added programs, which is the same
format as the regular session file. Once it has read in all the session
information, then it throws up a splash screen and starts to load the
programs from the session data it just read. Looking at the source,
certain things potentially start independent of the session, though:
esd, gnome-keyring, gnome-settings-daemon, and the various a11y
programs.