Hi,

I ran across this issue last night.

On Mon, Dec 14, 2009 at 02:30, Mick <michaelkintz...@gmail.com> wrote:
> If this is the case, am I right to assume that the files in
> /etc/X11/Sessions/* are not used anymore and the solution is to set up a local
> ~/.xinitrc file for launching the desired WM?

The scripts in /etc/X11/Sessions/ can still be used.

> I am muddled up because I have forever it seems used /etc/rc.conf to manage
> the XSESSION which xdm would pick from /etc/X11/Sessions/* to start different
> WMs.

At some point /etc/rc.conf was no longer being sourced. Instead,
setting the XSESSION variable in /etc/env.d is the correct way to do
it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]:

        ewarn "If you use startx to start X instead of a login manager like 
gdm/kdm,"
        ewarn "you can set the XSESSION variable to anything in 
/etc/X11/Sessions/ or"
        ewarn "any executable. When you run startx, it will run this as the
login session."
        ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
        ewarn "or set it per-user in ~/.bash_profile (or similar for other 
shells)."
        ewarn "Here's an example of setting it for the whole system:"
        ewarn "    echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
        ewarn "    env-update && source /etc/profile"

So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome"
(I use Gnome) did the trick.

Hope that helps,
Mike


[1] http://gentoo-portage.com/AJAX/Ebuild/100485/View

Reply via email to