View previous topic :: View next topic |
Author |
Message |
enigma_0Z Guru
Joined: 29 Aug 2004 Posts: 531 Location: Either lurking here or at my forum (see sig)
|
Posted: Mon Jan 17, 2005 2:50 am Post subject: A few GDM Questions... |
|
|
OK, I've got a few questions about GDM...
While snooping around in '/etc/X11/gdm/Xsession' I found this odd snippet of code:
Code: |
if [ "x$command" = "xdefault" ] ; then
if [ -x "$HOME/.Xclients" ]; then
command="$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
command="/etc/X11/xinit/Xclients"
elif [ -x /etc/X11/Xclients ]; then
command="/etc/X11/Xclients"
else
echo "$0: Cannot find Xclients"
# FIXME: kind of an evil failsafe
command="xsm"
fi
fi
|
I know what the if statements mean, but what is the Xclients file for? What would or should it contain. Apon inspecting the Xclients script in one users' home dir, I noticed that the if block seems to say that if .xinitrc exists, then execute that to start the WM. So then is what this script does is this?
If the session is default, then execute the .Xclients file in the user's home directory, which in this case then executes the user's .xinitrc file to start the WM, which in this case would start gaim, xscreensaver, and then enlightenment?
EDIT: Well, my assumptions were WRONG! hmm... Can anyone tell me how to do the following:
1. Change the default window manager
2. Add new window managers to GDM's menu
3. Add (or use) a session that will execute that user's ~/.xinitrc (or a custom script) to load a WM |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Mon Jan 17, 2005 3:22 am Post subject: |
|
|
for 2:
oddly enough (and poorly documented) gdm finds clients in the
/usr/share/xsessions/
directory.
Make a new .desktop entry.
I don't recall how to set default... maybe /etc/rc.conf? |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Mon Jan 17, 2005 3:24 am Post subject: |
|
|
for 3:
It used to be that if the user selected the GDM menu option "default", it could then call the users .xinitrc. I think this is still true, but haven't checked for about 6 months. |
|
Back to top |
|
|
enigma_0Z Guru
Joined: 29 Aug 2004 Posts: 531 Location: Either lurking here or at my forum (see sig)
|
Posted: Mon Jan 17, 2005 3:30 am Post subject: |
|
|
(for 3)
I tried that... my X session in xinitrc is enlightenment, but when I used the "default" setting it took me to gnome... |
|
Back to top |
|
|
|