Skip to main content
GameDev.net gamedev.net
🔒 Locked

GDM and the path

Started by Strife Dec 22, 2004 at 4:00 PM 4 replies 3.5k views
Original Post
Strife
Strife
So I'm trying to run Eclipse on my freshly-installed Debian, but it complains about the Java binaries not being in the path. No problem, I change it. So I can open Eclipse from the command line, but for some reason, I can't seem to make the path change permanent. I found that there is a line for setting the user path in /etc/gdm/gdm.conf, but even when I do this, it just reverts back to the default for some reason! Anyone know how I can make my path change permanent whilst still using GDM?
C-Junkie
C-Junkie
Hmm. .Xsession? /etc/profile? .profile? gdm didn't work...

I don't know off the top of my head where the PATH gets set, I've never had to change it...
bytecoder
bytecoder
The system-wide bash startup script is /etc/profile. The user startup script is in ~/.bash_profile for bash. Setting the path (via export) in one of those files should make it permanent.
EDIT:
To append something to PATH you would do something like this:
export PATH=$PATH:/additional/path1:/additional/path2:etc...
Strife
Strife
Just as a follow-up... I had only had this problem running KDE. The /etc/profile was edited appropriately, but the problem is that that's not read when you login thru GDM (as far as I could tell). However, when I use XFCE, I don't have this problem. So I'm really not sure what was going on there.
Arkainium
Arkainium
Hmm, weird. I use GDM and IceWM and never had this happen to me. I set my path variable in ~/.bashrc though.

As a work around, you might want to try setting a symbolic link from the actual jre directory (where ever you have java installed) to the Eclipse directory.
C-Junkie
C-Junkie
KDE control center knob?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.