* [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
@ 2009-12-13 18:30 Mick
2009-12-13 20:22 ` Dale
2009-12-13 22:02 ` Mike Mazur
0 siblings, 2 replies; 21+ messages in thread
From: Mick @ 2009-12-13 18:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1366 bytes --]
Hi All,
I got mixed up with the various .fdi files in a previous thread, thinking that
this is what killed my X GUI. However, it seems that the problem is most
likely related to rc.conf. Has this file been done away with as far as Gentoo
is concerned? I say this because I discovered that running dispatch.conf
after sys-apps/baselayout-1.12.13 substitutes /etc/rc.conf with an empty file.
Mind you, even if the file contains the previous information about XSESSION
xdm or slim do not seem to use it now.
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?
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.
Right now I have copied the contents of /etc/X11/Sessions/fluxbox into
~/.xinitrc, added slim's /usr/share/doc/slim-1.3.1-r4/xinitrc.sample.bz2 and
that's how I can get fluxbox to come up.
What is the default Gentoo way these days of bringing up an X session?
PS. Is there a clever way of killing slim? It seems that /etc/init.d/xdm
stop/zap won't kill slim or the X session that it starts. I need to manually
run kill -9 to make it give up.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 18:30 [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? Mick
@ 2009-12-13 20:22 ` Dale
2009-12-13 20:43 ` Mick
2009-12-13 22:02 ` Mike Mazur
1 sibling, 1 reply; 21+ messages in thread
From: Dale @ 2009-12-13 20:22 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> Hi All,
>
> I got mixed up with the various .fdi files in a previous thread, thinking that
> this is what killed my X GUI. However, it seems that the problem is most
> likely related to rc.conf. Has this file been done away with as far as Gentoo
> is concerned? I say this because I discovered that running dispatch.conf
> after sys-apps/baselayout-1.12.13 substitutes /etc/rc.conf with an empty file.
> Mind you, even if the file contains the previous information about XSESSION
> xdm or slim do not seem to use it now.
>
> 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?
>
> 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.
>
> Right now I have copied the contents of /etc/X11/Sessions/fluxbox into
> ~/.xinitrc, added slim's /usr/share/doc/slim-1.3.1-r4/xinitrc.sample.bz2 and
> that's how I can get fluxbox to come up.
>
> What is the default Gentoo way these days of bringing up an X session?
>
> PS. Is there a clever way of killing slim? It seems that /etc/init.d/xdm
> stop/zap won't kill slim or the X session that it starts. I need to manually
> run kill -9 to make it give up.
>
Well, I'm a KDE guy myself so this may just be completely wrong here. I
put my X stuff in /etc/conf.d/xdm and it tells what I am using for my
GUI. Again, I don't have Fluxbox and I understand it works differently
so this may be as far off as Pluto.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 20:22 ` Dale
@ 2009-12-13 20:43 ` Mick
2009-12-13 22:14 ` Dale
2009-12-13 23:01 ` Neil Bothwick
0 siblings, 2 replies; 21+ messages in thread
From: Mick @ 2009-12-13 20:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 2090 bytes --]
On Sunday 13 December 2009 20:22:03 Dale wrote:
> Mick wrote:
> > Hi All,
> >
> > I got mixed up with the various .fdi files in a previous thread, thinking
> > that this is what killed my X GUI. However, it seems that the problem is
> > most likely related to rc.conf. Has this file been done away with as far
> > as Gentoo is concerned? I say this because I discovered that running
> > dispatch.conf after sys-apps/baselayout-1.12.13 substitutes /etc/rc.conf
> > with an empty file. Mind you, even if the file contains the previous
> > information about XSESSION xdm or slim do not seem to use it now.
> >
> > 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?
> >
> > 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.
> >
> > Right now I have copied the contents of /etc/X11/Sessions/fluxbox into
> > ~/.xinitrc, added slim's /usr/share/doc/slim-1.3.1-r4/xinitrc.sample.bz2
> > and that's how I can get fluxbox to come up.
> >
> > What is the default Gentoo way these days of bringing up an X session?
> >
> > PS. Is there a clever way of killing slim? It seems that
> > /etc/init.d/xdm stop/zap won't kill slim or the X session that it starts.
> > I need to manually run kill -9 to make it give up.
>
> Well, I'm a KDE guy myself so this may just be completely wrong here. I
> put my X stuff in /etc/conf.d/xdm and it tells what I am using for my
> GUI. Again, I don't have Fluxbox and I understand it works differently
> so this may be as far off as Pluto.
Thanks Dale,
The /etc/conf.d/xdm file, which arrived after the /etc/rc.conf days, is indeed
used to set up the Display Manager, but not the Window Manager/Display
Environment X session. The latter was being defined in rc.conf, but this I
think is no longer the case - hence I am asking here.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 18:30 [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? Mick
2009-12-13 20:22 ` Dale
@ 2009-12-13 22:02 ` Mike Mazur
2009-12-14 11:17 ` Mick
1 sibling, 1 reply; 21+ messages in thread
From: Mike Mazur @ 2009-12-13 22:02 UTC (permalink / raw
To: gentoo-user
Hi,
I ran across this issue last night.
On Mon, Dec 14, 2009 at 02:30, Mick <michaelkintzios@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
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 20:43 ` Mick
@ 2009-12-13 22:14 ` Dale
2009-12-13 23:01 ` Neil Bothwick
1 sibling, 0 replies; 21+ messages in thread
From: Dale @ 2009-12-13 22:14 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> Thanks Dale,
>
> The /etc/conf.d/xdm file, which arrived after the /etc/rc.conf days, is indeed
> used to set up the Display Manager, but not the Window Manager/Display
> Environment X session. The latter was being defined in rc.conf, but this I
> think is no longer the case - hence I am asking here.
>
I was thinking Fluxbox used a different method but thought it worth
mentioning since looking wouldn't hurt. I see someone else posted
something so maybe that will help.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 20:43 ` Mick
2009-12-13 22:14 ` Dale
@ 2009-12-13 23:01 ` Neil Bothwick
2009-12-14 11:18 ` Mick
1 sibling, 1 reply; 21+ messages in thread
From: Neil Bothwick @ 2009-12-13 23:01 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 574 bytes --]
On Sun, 13 Dec 2009 20:43:41 +0000, Mick wrote:
> The /etc/conf.d/xdm file, which arrived after the /etc/rc.conf days, is
> indeed used to set up the Display Manager, but not the Window
> Manager/Display Environment X session. The latter was being defined in
> rc.conf, but this I think is no longer the case - hence I am asking
> here.
The DE/WM to use is specified by whatever display manager you use.
Setting it in a global configuration file is pointless on a multi-user
system.
--
Neil Bothwick
DOS never says "EXCELLENT command or filename"...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 22:02 ` Mike Mazur
@ 2009-12-14 11:17 ` Mick
2009-12-14 11:31 ` Mike Mazur
0 siblings, 1 reply; 21+ messages in thread
From: Mick @ 2009-12-14 11:17 UTC (permalink / raw
To: gentoo-user
2009/12/13 Mike Mazur <mmazur@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 ?
--
Regards,
Mick
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-13 23:01 ` Neil Bothwick
@ 2009-12-14 11:18 ` Mick
2009-12-14 12:22 ` Neil Bothwick
0 siblings, 1 reply; 21+ messages in thread
From: Mick @ 2009-12-14 11:18 UTC (permalink / raw
To: gentoo-user
2009/12/13 Neil Bothwick <neil@digimed.co.uk>:
> On Sun, 13 Dec 2009 20:43:41 +0000, Mick wrote:
>
>> The /etc/conf.d/xdm file, which arrived after the /etc/rc.conf days, is
>> indeed used to set up the Display Manager, but not the Window
>> Manager/Display Environment X session. The latter was being defined in
>> rc.conf, but this I think is no longer the case - hence I am asking
>> here.
>
> The DE/WM to use is specified by whatever display manager you use.
> Setting it in a global configuration file is pointless on a multi-user
> system.
Thanks Neil,
So, where would you specify which DE/WM session the xdm Display
Manager will load up for a specific user in a Gentoo set up?
(assuming that there is such a thing as a Gentoo default way of doing
this).
--
Regards,
Mick
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 11:17 ` Mick
@ 2009-12-14 11:31 ` Mike Mazur
2009-12-14 12:22 ` Patrick Holthaus
2009-12-15 5:29 ` daid kahl
0 siblings, 2 replies; 21+ messages in thread
From: Mike Mazur @ 2009-12-14 11:31 UTC (permalink / raw
To: gentoo-user
Hi,
On Mon, Dec 14, 2009 at 19:17, Mick <michaelkintzios@gmail.com> wrote:
> 2009/12/13 Mike Mazur <mmazur@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
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 11:31 ` Mike Mazur
@ 2009-12-14 12:22 ` Patrick Holthaus
2009-12-15 5:29 ` daid kahl
1 sibling, 0 replies; 21+ messages in thread
From: Patrick Holthaus @ 2009-12-14 12:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
Hi!
> > 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.
For example KDM (and GDM, i think) look for *.desktop files in
/usr/share/xsessions.
HTH
Patrick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 11:18 ` Mick
@ 2009-12-14 12:22 ` Neil Bothwick
2009-12-14 17:00 ` Allan Gottlieb
2009-12-14 20:50 ` Mick
0 siblings, 2 replies; 21+ messages in thread
From: Neil Bothwick @ 2009-12-14 12:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 948 bytes --]
On Mon, 14 Dec 2009 11:18:56 +0000, Mick wrote:
> > The DE/WM to use is specified by whatever display manager you use.
> > Setting it in a global configuration file is pointless on a multi-user
> > system.
> So, where would you specify which DE/WM session the xdm Display
> Manager will load up for a specific user in a Gentoo set up?
> (assuming that there is such a thing as a Gentoo default way of doing
> this).
I used xdm once, that was more than enough. gdm and kdm both have options
to do this, as did the one whose name I cannot remember that I tried
once. Alternatively, you can use the XSESSION environment variable or use
the standard .xinitrc/.xsession way of doing things. I'd either do that
latter or use a more flexible display manager, I find xdm horrible.
--
Neil Bothwick
Why is it that when you transport something by car it's called shipment,
but when you transport it by ship it's called cargo?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 12:22 ` Neil Bothwick
@ 2009-12-14 17:00 ` Allan Gottlieb
2009-12-14 21:55 ` pk
2009-12-14 20:50 ` Mick
1 sibling, 1 reply; 21+ messages in thread
From: Allan Gottlieb @ 2009-12-14 17:00 UTC (permalink / raw
To: gentoo-user
At Mon, 14 Dec 2009 12:22:42 +0000 Neil Bothwick <neil@digimed.co.uk> wrote:
> On Mon, 14 Dec 2009 11:18:56 +0000, Mick wrote:
>
>> > The DE/WM to use is specified by whatever display manager you use.
>> > Setting it in a global configuration file is pointless on a multi-user
>> > system.
>
>> So, where would you specify which DE/WM session the xdm Display
>> Manager will load up for a specific user in a Gentoo set up?
>> (assuming that there is such a thing as a Gentoo default way of doing
>> this).
>
> I used xdm once, that was more than enough. gdm and kdm both have options
> to do this, as did the one whose name I cannot remember that I tried
> once. Alternatively, you can use the XSESSION environment variable or use
> the standard .xinitrc/.xsession way of doing things. I'd either do that
> latter or use a more flexible display manager, I find xdm horrible.
I use gdm and do successfully get my WM set up.
However, I would like to set (augment) PATH early so that, for example,
the gnome panel has the path and hence all the launchers do.
I know it is just one line in the shell
export PATH=$HOME/bin:$PATH
but I don't know what file to put it in.
It would be acceptable, but not preferable, if this was set for all
users; the only requirement is that it is set for user gottlieb.
thanks,
allan
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 12:22 ` Neil Bothwick
2009-12-14 17:00 ` Allan Gottlieb
@ 2009-12-14 20:50 ` Mick
2009-12-14 22:45 ` Mike Edenfield
1 sibling, 1 reply; 21+ messages in thread
From: Mick @ 2009-12-14 20:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1179 bytes --]
On Monday 14 December 2009 12:22:42 Neil Bothwick wrote:
> On Mon, 14 Dec 2009 11:18:56 +0000, Mick wrote:
> > > The DE/WM to use is specified by whatever display manager you use.
> > > Setting it in a global configuration file is pointless on a multi-user
> > > system.
> >
> > So, where would you specify which DE/WM session the xdm Display
> > Manager will load up for a specific user in a Gentoo set up?
> > (assuming that there is such a thing as a Gentoo default way of doing
> > this).
>
> I used xdm once, that was more than enough. gdm and kdm both have options
> to do this, as did the one whose name I cannot remember that I tried
> once. Alternatively, you can use the XSESSION environment variable or use
> the standard .xinitrc/.xsession way of doing things. I'd either do that
> latter or use a more flexible display manager, I find xdm horrible.
You're right, although xdm can be beautified if you have the time or
inclination to look into /etc/X11/xdm/Xresources.
When I am looking for my XSESSION I get nothing:
$ echo $SESSION
How do I set this up, other than Mike's suggestion of '/etc/env.d/90xsession'?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 17:00 ` Allan Gottlieb
@ 2009-12-14 21:55 ` pk
2009-12-14 22:43 ` Allan Gottlieb
0 siblings, 1 reply; 21+ messages in thread
From: pk @ 2009-12-14 21:55 UTC (permalink / raw
To: gentoo-user
Allan Gottlieb wrote:
> I know it is just one line in the shell
> export PATH=$HOME/bin:$PATH
> but I don't know what file to put it in.
>
> It would be acceptable, but not preferable, if this was set for all
> users; the only requirement is that it is set for user gottlieb.
For all users: /etc/profile (if using bourne derived shells like bash)
or
/etc/profile.csh (for c shell derivatives)
For only your user: ~/.profile or ~/.bash_profile or ~/.bashrc or ~/.*rc
or whatever is used for your particular shell dialect.
HTH
Best regards
Peter K
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 21:55 ` pk
@ 2009-12-14 22:43 ` Allan Gottlieb
2009-12-16 19:16 ` pk
0 siblings, 1 reply; 21+ messages in thread
From: Allan Gottlieb @ 2009-12-14 22:43 UTC (permalink / raw
To: gentoo-user
At Mon, 14 Dec 2009 22:55:35 +0100 pk <peterk2@coolmail.se> wrote:
> Allan Gottlieb wrote:
>
>> I know it is just one line in the shell
>> export PATH=$HOME/bin:$PATH
>> but I don't know what file to put it in.
>>
>> It would be acceptable, but not preferable, if this was set for all
>> users; the only requirement is that it is set for user gottlieb.
>
> For all users: /etc/profile (if using bourne derived shells like bash)
> or
> /etc/profile.csh (for c shell derivatives)
>
> For only your user: ~/.profile or ~/.bash_profile or ~/.bashrc or ~/.*rc
> or whatever is used for your particular shell dialect.
>
> HTH
Does that get sourced by the gnome panel so that launchers see it?
I hadn't thought so, but will try it.
Thanks.
allan
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 20:50 ` Mick
@ 2009-12-14 22:45 ` Mike Edenfield
2009-12-14 23:02 ` Mick
0 siblings, 1 reply; 21+ messages in thread
From: Mike Edenfield @ 2009-12-14 22:45 UTC (permalink / raw
To: gentoo-user; +Cc: Mick
On 12/14/2009 3:50 PM, Mick wrote:
> When I am looking for my XSESSION I get nothing:
>
> $ echo $SESSION
>
>
> How do I set this up, other than Mike's suggestion of '/etc/env.d/90xsession'?
With baselayout-2, setting it in /etc/env.d is the correct method; if
you want per-user sessions you can also set it in your local .bashrc file.
Also, note: $XSESSION != $SESSION, just in case it's already set and you
missed it.
--Mike
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 22:45 ` Mike Edenfield
@ 2009-12-14 23:02 ` Mick
0 siblings, 0 replies; 21+ messages in thread
From: Mick @ 2009-12-14 23:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 613 bytes --]
On Monday 14 December 2009 22:45:54 Mike Edenfield wrote:
> On 12/14/2009 3:50 PM, Mick wrote:
> > When I am looking for my XSESSION I get nothing:
> >
> > $ echo $SESSION
> >
> >
> > How do I set this up, other than Mike's suggestion of
> > '/etc/env.d/90xsession'?
>
> With baselayout-2, setting it in /etc/env.d is the correct method; if
> you want per-user sessions you can also set it in your local .bashrc file.
>
> Also, note: $XSESSION != $SESSION, just in case it's already set and you
> missed it.
Ooops sorry! Mistyped - should have been $XSESSION.
Thanks.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 11:31 ` Mike Mazur
2009-12-14 12:22 ` Patrick Holthaus
@ 2009-12-15 5:29 ` daid kahl
2009-12-15 15:38 ` Marcus Wanner
1 sibling, 1 reply; 21+ messages in thread
From: daid kahl @ 2009-12-15 5:29 UTC (permalink / raw
To: gentoo-user
2009/12/14 Mike Mazur <mmazur@gmail.com>:
> Hi,
>
> On Mon, Dec 14, 2009 at 19:17, Mick <michaelkintzios@gmail.com> wrote:
>> 2009/12/13 Mike Mazur <mmazur@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
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-15 5:29 ` daid kahl
@ 2009-12-15 15:38 ` Marcus Wanner
0 siblings, 0 replies; 21+ messages in thread
From: Marcus Wanner @ 2009-12-15 15:38 UTC (permalink / raw
To: gentoo-user
On 12/15/2009 12:29 AM, daid kahl wrote:
> You can just set this up in ~/.xinitrc then.
>
> exec startxfce4
(that's actually startxfce)
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-14 22:43 ` Allan Gottlieb
@ 2009-12-16 19:16 ` pk
2009-12-17 3:54 ` Allan Gottlieb
0 siblings, 1 reply; 21+ messages in thread
From: pk @ 2009-12-16 19:16 UTC (permalink / raw
To: gentoo-user
Allan Gottlieb wrote:
> Does that get sourced by the gnome panel so that launchers see it?
> I hadn't thought so, but will try it.
Hm... X/xDM is started from a virtual console (mine is usually started
from VC-7, which is the default). That's where your login should happen,
so everything started after that should inherit the environment
variables. I would assume gnome DE (everything related to) uses the same
"tactic"... but given the gnome developers ms-windows fanatiscism I
wouldn't be surprised if it didn't.
Best regards / MfG
Peter K
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)?
2009-12-16 19:16 ` pk
@ 2009-12-17 3:54 ` Allan Gottlieb
0 siblings, 0 replies; 21+ messages in thread
From: Allan Gottlieb @ 2009-12-17 3:54 UTC (permalink / raw
To: gentoo-user
At Wed, 16 Dec 2009 20:16:30 +0100 pk <peterk2@coolmail.se> wrote:
> Allan Gottlieb wrote:
>
>> Does that get sourced by the gnome panel so that launchers see it?
>> I hadn't thought so, but will try it.
>
> Hm... X/xDM is started from a virtual console (mine is usually started
> from VC-7, which is the default). That's where your login should happen,
> so everything started after that should inherit the environment
> variables. I would assume gnome DE (everything related to) uses the same
> "tactic"... but given the gnome developers ms-windows fanatiscism I
> wouldn't be surprised if it didn't.
Adding
export $PATH=$HOME/bin:$PATH
to ~/.profile does seem to work so thank you.
But I am surprised. X/xDM runs as root so wouldn't look in my .profile
when *IT* starts. I had assumed (incorrectly) that I had to put the
above export into one of the startup files mentioned in the man pages,
but couldn't figure out which one.
It is indeed much easier than I thought!
thanks again,
allan
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2009-12-17 4:31 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13 18:30 [gentoo-user] Is rc.conf no longer used by Gentoo (baselayout-1.12.13)? Mick
2009-12-13 20:22 ` Dale
2009-12-13 20:43 ` Mick
2009-12-13 22:14 ` Dale
2009-12-13 23:01 ` Neil Bothwick
2009-12-14 11:18 ` Mick
2009-12-14 12:22 ` Neil Bothwick
2009-12-14 17:00 ` Allan Gottlieb
2009-12-14 21:55 ` pk
2009-12-14 22:43 ` Allan Gottlieb
2009-12-16 19:16 ` pk
2009-12-17 3:54 ` Allan Gottlieb
2009-12-14 20:50 ` Mick
2009-12-14 22:45 ` Mike Edenfield
2009-12-14 23:02 ` Mick
2009-12-13 22:02 ` Mike Mazur
2009-12-14 11:17 ` Mick
2009-12-14 11:31 ` Mike Mazur
2009-12-14 12:22 ` Patrick Holthaus
2009-12-15 5:29 ` daid kahl
2009-12-15 15:38 ` Marcus Wanner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox