PATH ~/bin under gnome
marius at pov.lt
Thu Nov 23 12:25:43 UTC 2006
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:
> > > There's a nearly universal solution: use ~/.xsession, place your environment
> > > variable modification at the top and exec the appropriate session script
> > > at the end (e.g. exec /usr/bin/gnome-session). Then choose "custom" in
> > > your login manager.
> > ...
> > > The downside to this approach is that you cannot choose different
> > > sessions in your display manager's menu and expect your environment
> > > variable settings to appear in each of them.
> > 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. (Of course you can call those files whatever you like
> and put them elsewhere if you wish, as long as the "Exec= " line points at
> them and they are executable. ) This way you get entries for each DE/ wm in
> your gdm login screen .
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
if [ -r "$ENVFILE" ]; then
It would be the equivalent of .gnomerc but it would work for all
kinds of sessions.
PCMCIA - People Can't Memorize Computer Industry Acronyms
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the ubuntu-users