LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PATH export in etc/profile.local adds dir twice (https://www.linuxquestions.org/questions/linux-newbie-8/path-export-in-etc-profile-local-adds-dir-twice-334002/)

tongar 06-15-2005 04:59 PM

PATH export in etc/profile.local adds dir twice
 
env: SLES9 SP1 intel

I have a dir I want added to PATH permanently for all users.
I created a /etc/profile.local and put in it:

#profile.local
#local system settings

#add Adobe to PATH variable
export PATH=$PATH:/usr/local/Adobe/Acrobat7.0/bin

After a shutdown and restart, the PATH has the dir appended twice. I don't want it in there twice. It may irritate Linux or performance or something. If you don't know how to fix this, feel free to suggest one of the other 23 places I could have put this to achieve my goal, but I need to work for all users including root.
Obviously, this is related to the saga of trying to get the Acrobat 7 reader to work inside Firefox. I have tried most of the 8 fixes this forums suggests without success, but thought at least I could get the PATH right.

thanks for your ideas, this forum is the best,
tongar

trickykid 06-16-2005 09:24 AM

Why don't you just create a symlink from /usr/bin or /usr/local/bin to point to the executable in the Acrobat bin directory.. ?

tongar 06-16-2005 11:41 AM

That may be a good idea, but he install instructions said to modigy the PATH environment variable with the Adobe dir.

In Linux, is placing a link in dir in the existing PATH the way to do it as the instructions may be written with a Windows mindset where there are no links?

What is the intended usage for /usr/bin and /usr/local/bin, which would I pick?

thanks,
tongar

foo_bar_foo 06-16-2005 03:56 PM

while it is anoying as &(^% the extra PATH especially at the end of the string won't effect performance or cause any problems.
you can find the cause by carefully reading the scripts and knowing when and in what order they are read.
For instance my scripts are written to search for things to add automajically so if i add something in like you did i get 2 as well.


All times are GMT -5. The time now is 06:08 AM.