Re: PATH to java in X11
On Tue, 02 Oct 2007 05:46:01 +0530
Raj Kiran Grandhi <email@example.com> wrote:
> Henrique G. Abreu wrote:
> > I'm running Lenny.
> > I've inserted the lines to .bashrc as you sad
> > but it only worked to the terminal
> > it had no effect in gnome (eg: using Alt+F2)
> > I inserted 'source /etc/profile' directly into
> > /etc/X11/Xsession.d/55gnome-session_gnomerc
> > and it's working now!
> > I still want to know the correct way to do this.
> > if you someone knows, please send.
> Create a file .xsession in your home directory with the following:
> source ~/.bashrc
> PATH=<your path>
> exec gnome-session
> Log out of gnome and log back in specifying the session as "User
> default" or some such thing in the gdm menu.
Another approach is to run .xsession in a login shell:
Then your X session will inherit your full profile.