Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A few GDM Questions...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Mon Jan 17, 2005 2:50 am    Post subject: A few GDM Questions... Reply with quote

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
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Mon Jan 17, 2005 3:22 am    Post subject: Reply with quote

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
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Mon Jan 17, 2005 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Mon Jan 17, 2005 3:30 am    Post subject: Reply with quote

(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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum