2009/12/14 Mike Mazur <mma...@gmail.com>: > Hi, > > On Mon, Dec 14, 2009 at 19:17, Mick <michaelkintz...@gmail.com> wrote: >> 2009/12/13 Mike Mazur <mma...@gmail.com>: >> >>> I ran across this issue last night. >>> >>> 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. >> >> Thanks Mike, most helpful! What happens if you want to switch between >> different sessions at/from the Display Manager stage? Do you place >> them all in /etc/env.d/90xsession ? > > Sorry, I'm not sure how to do that. I'm the only user on my system and > I don't use a graphical login manager. > > Mike
This post might go without saying... You can just set this up in ~/.xinitrc then. exec startxfce4 or whatever... Regards, daid