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 (1)

25
votes
8answers
41k 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 ...
8
votes
3answers
6k 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 ...
24
votes
5answers
43k 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 ...
41
votes
5answers
22k 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 /etc/launchd....
13
votes
4answers
20k views

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

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. #...
6
votes
5answers
20k views

How to add MySQL to $PATH variable to resolve “mysql: command not found”?

I installed MySQL on my Mac, and now I would like to add it to my $PATH variable. I want to be able to type mysql anywhere. I tried adding the following to my .profile file: export PATH=${PATH}/usr/...
3
votes
1answer
527 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 ...
3
votes
1answer
8k views

Fixing Water Damaged iPhone

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

How do I set environment variables on OS X?

I have always difficulties setting the Environment variables in OS X like JAVA_HOME, M2_HOME or PATH. How to set these on OS X Mavericks? I did some research but the answers I've found didn't really ...
8
votes
2answers
3k views

mount is adding a quarantine flag, causing: /bin/bash: bad interpreter: Operation not permitted - but not the usual suspects

OK, I'm having a similar problem to: -bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted - but it's not the same problem. I'm getting the same result. I've already verified ...
1
vote
1answer
3k views

Defining environment variables with launchd/launchctl

There are different solutions regarding the definition of environment variables that are stored in the launchd process, namely over at StackOverflow and Superuser. How do these solutions differ?
0
votes
1answer
791 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 ...
5
votes
5answers
15k views

Are non-Apple iPhone chargers safe?

I discovered today that there are a lot of non-Apple low-cost iPhone (and iPad) chargers. The cost is very low, so I am concerned about the quality of such chargers. Are these alternative chargers ...
4
votes
0answers
4k views

Setting system-wide environment variables in El Capitan [closed]

I was using the method described in this post to invoke "launchctl setenv" to set environment variables globally. I have just upgraded to OS X 10.11 "El Capitan," and now I see that the launchctl ...
4
votes
2answers
6k 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, ...