Gdm session files

Hanspeter Roth hampi at rootshell.be
Mon Aug 29 11:07:55 GMT 2005


  On Aug 28 at 17:24, Joe Marcus Clarke spoke:

> On Sun, 2005-08-28 at 23:20 +0200, Hanspeter Roth wrote:
> >   On Aug 28 at 16:14, Joe Marcus Clarke spoke:
> > 
> > > On Sun, 2005-08-28 at 22:09 +0200, Hanspeter Roth wrote:
> > > >   On Aug 28 at 14:49, Joe Marcus Clarke spoke:
> > > > 
> > > > > Your TryExec line is probably wrong.  Note: you should not create
> > > > > a .xinitrc entry for any display manager.
> > > > 
> > > > Why not?
> > > 
> > > Because .xinitc and a display manager do the same thing in different
> > > ways.  In any event, what you're doing below is not possible.
> > 
> > Hm. The display manager is active before and while loggin in.
> 
> Yes, but before the user enters their name, how does it know how to
> expand $HOME?

No, of course it can't know _before_ just _after_ the user enters
his name.

> > .xinitrc is active mainly just after loggin in.
> > So what is the thing they both do?
> 
> They both control X sessions, but for different applications.
> ~/.xinitrc is designed to be called by startx.  There could conceivably
> be conflicts in using it to drive a display manager.

Yes, I'm also using ~/.xinitrc with startx since I don't run GDM on
all hosts.
I was looking for a means to reuse ~/.xinitrc.

It seems that GDM's Default session honors ~/.Xclients. So I can
also link ~/.xinitrc to ~/.Xclients and chose the Default session.

I also tried a /usr/X11R6/etc/dm/Sessions/custom.desktop which looks
like this:

[Desktop Entry]
Encoding=UTF-8
Name=Xsession custom
Comment=Xsession custom
Exec=/usr/X11R6/etc/gdm/Xsession custom
TryExec=true
Icon=
Type=Application

This honors ~/.xsession.

-Hanspeter


More information about the freebsd-gnome mailing list