PATH ~/bin under gnome

Peter Garrett peter.garrett at optusnet.com.au
Thu Nov 23 12:39:27 UTC 2006


On Thu, 23 Nov 2006 14:25:43 +0200
Marius Gedminas <marius at pov.lt> wrote:

> On Thu, Nov 23, 2006 at 11:12:40PM +1100, Peter Garrett wrote:
> > On Thu, 23 Nov 2006 11:12:25 +0000
> > Adam Funk <a24061 at yahoo.com> wrote:
[snips]
> > > Hmm.  I like having the flexibility of being able to use a different
> > > DM occasionally.  I recently saw a cryptic reference to ~/.xprofile
> > > somewhere --- is that relevant?
> > 
> > One work-around is to edit the *.desktop files in /usr/share/xsessions to
> > point at a number of ~/.xsession files with different names - for example
> > ~/.xsession.enlightenment , ~/.xsession.fluxbox , and so on , and add your
> > modifications there. 

[snips]
> 
> A much simpler way is to look at 
> /etc/X11/Xsession.d/55gnome-session_gnomerc, and create a, say, 
> /etc/X11/Xsession.d/56my-xsessionenv that looks like this
> 
>   ENVFILE=$HOME/.xsessionenv
>   if [ -r "$ENVFILE" ]; then
>     . "$ENVFILE"
>   fi
> 
> It would be the equivalent of .gnomerc but it would work for all
> kinds of sessions.

Cool :-) thanks for that! /me puts this in his "useful-stuff" file ;-)

Peter




More information about the ubuntu-users mailing list