Environment variables are used to create shared settings that persist between invocations of applications. They are used to provide information such as paths to important directories, user information and other information programs need for common tasks.

learn more… | top users | synonyms

34
votes
4answers
17k views

Where are system environment variables set in Mountain Lion?

In Lion (and previous releases) it was in .MacOSX/environment.plist. After upgrading to 10.8, the file is still there, but the variables aren’t taking. I’ve also tried adding them to ...
11
votes
4answers
13k views

How to set system-wide environment variables on OS X Mavericks

We used to use /etc/environment to set system-wide environment variables on Mountain Lion. However, it seems this file is no longer read. Ideally the solution should apply to all users, and we need ...
14
votes
7answers
15k views

Setting the system-wide PATH environment variable in Mavericks

In previous OS versions one could set the system-wide PATH environment variable in /etc/launchd.conf to make it available for all apps (not just the command line). In Mavericks this appears to be no ...
11
votes
4answers
17k views

How to change PATH environment variable to OS X 10.8 Mountain Lion that will be visible to GUI applications?

I tried all methods I heard of for setting environment variables on OS X 10.8 but none of them seems to work. To test, run a bash script from inside a gui application like Eclipse or IntelliJ IDEA. ...
5
votes
2answers
3k views

In Mountain Lion how do I set, in one place, the PATH environment variable for all newly launched applications?

On Ask Different there are many questions regarding the PATH environment variable and how to set it for applications launched by a shell, by spotlight or via the finder (typical questions: How to set ...
3
votes
1answer
336 views

In Mountain Lion why do remote shells via ssh do NOT inherit the environment of the launchd parent process?

When logging in to my Mountain Lion Mac remotely via ssh I do not get the same PATH variable as when I open a shell locally: The local shell inherits its environment as expected from launchd and ...
1
vote
1answer
2k views

Fixing Water Damaged iPhone

My iPhone screen started blinking white is now completely white. Can someone tell me if this is fixable?
4
votes
4answers
27k views

How do I set environment variables on OS X?

I have always difficulties setting the environment variables on Mac like JAVA_HOME, M2_HOME or PATH. How to set these on Mavericks OS X? I did some research but the answers I've found didn't really ...
0
votes
1answer
133 views

Making items added to paths via paths.d show up everywhere under Mavericks

I'd like to set the path under OS X Mavericks so that the setting shows up everywhere (e.g., in .apps and in Darwin shells). There's plenty of discussion out there about how to set environment ...
4
votes
2answers
795 views

How to thoroughly waterproof a Macbook?

I am just now coming to know the hard limits of water destroying equipment. I don't know if it's realistic to be able to have my Macbook as a floatable rubber ducky in the bath in this day & age, ...