1 |
2009/12/13 Mike Mazur <mmazur@×××××.com>: |
2 |
|
3 |
> I ran across this issue last night. |
4 |
> |
5 |
> At some point /etc/rc.conf was no longer being sourced. Instead, |
6 |
> setting the XSESSION variable in /etc/env.d is the correct way to do |
7 |
> it. From the pkg_postinst section of the x11-apps/xinit ebuild[1]: |
8 |
> |
9 |
> ewarn "If you use startx to start X instead of a login manager like gdm/kdm," |
10 |
> ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" |
11 |
> ewarn "any executable. When you run startx, it will run this as the |
12 |
> login session." |
13 |
> ewarn "You can set this in a file in /etc/env.d/ for the entire system," |
14 |
> ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." |
15 |
> ewarn "Here's an example of setting it for the whole system:" |
16 |
> ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" |
17 |
> ewarn " env-update && source /etc/profile" |
18 |
> |
19 |
> So, creating /etc/env.d/90xsession with the contents XSESSION="Gnome" |
20 |
> (I use Gnome) did the trick. |
21 |
|
22 |
Thanks Mike, most helpful! What happens if you want to switch between |
23 |
different sessions at/from the Display Manager stage? Do you place |
24 |
them all in /etc/env.d/90xsession ? |
25 |
-- |
26 |
Regards, |
27 |
Mick |