$PATH


TrashyMG

Sarcasm Dispenser
Staff member
Joined
Jan 18, 2010
Messages
11,387
I've been trying to add a path to a directory that contains the new oracle java ARM binaries. I've tried the /etc/profile file.. Which the JAVA_HOME variable seems to set okay.. so I know it sources that file. However I know it doesn't take any paths I add into the file, almost as if it's being overridden by some other file. I've also tried adding the path to /etc/profile.d/op_env.sh and /etc/login.defs without any luck. Adding it to the .bashrc works, but only when I run a PND from the terminal and not directly from XFCE or minimenu.. My guess is that neither XFCE or minimenu source the .bashrc file when launching.


So I'm a bit confused what is going on here...
 
Last edited by a moderator:
Ah that was the fix and cause of all my problems.. the ~/.profile just uses a PATH= instead of appending to the current PATH setup in the global /etc/profile file. Explains why it was being overridden by another file.
 
Last edited by a moderator:
Back
Top