0

What is the recommended way to add user level environment variables to be used by a GUI application in Ubuntu? I know there are ~/.bashrc, ~/.cshrc, ~/.profile etc for console apps.

  1. How can I add new paths to existing PATH (/bin:/usr/bin/:/usr/X11R6/bin/usr/local/bin)?
  2. How to add settings (new key value pairs)? This is meant to be used by a bunch of applications.
0

At EnvironmentVariables, ~/.pam_environment and ~/.profile are mentioned as suitable files in Ubuntu. Personally I prefer ~/.profile since it's a script file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.