LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do you alter/ add to paths set on startup? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-alter-add-to-paths-set-on-startup-240300/)

PaleViper 10-08-2004 12:56 PM

how do you alter/ add to paths set on startup?
 
I am having trouble with something I think should be straightforward. I am trying to run a SuperKaramba theme automatically on startup. I have put a script in my KDE autostart folder however it is unable to find the program it needs to run (i.e. SuperKaramba) I assume this is because it is not looking in the folder where the program is located and that therefore the path to that dirctory needs to be set.

How is this done and where are paths stored?

Any Help would be appreciated

Mikhail_16 10-08-2004 01:11 PM

The global paths are stored in /etc/profile file and user-specific paths (if user wants to add some specific path), are stored in .[user's shell](rc) file in the users home directory

bulliver 10-08-2004 01:19 PM

It is more elegant to put apps in your path, rather than taking your path to your apps. Is there a particular reason you cannot put superkaramba in /usr/bin?

If you insist on adding this directory to your path then edit .bashrc and add a line like this:
Code:

export PATH=$PATH:/my/new/directory
Don't forget to source the file so the settings take effect right away:
Code:

$ . ~/.bashrc

PaleViper 10-08-2004 01:33 PM

Thanks I am not sure if the file can be located in usr/bin, I installed it with rpm and this is where it put it. /usr/local/kde/bin

bulliver 10-08-2004 01:55 PM

I see. Just add it to your path then. I thought maybe you were just running it from your home directory or something.


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