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
vote
2answers
50 views

Changing the $HOME environment variable in terminal on mac 10.8

To be clear im not looking for a workaround that will execute a change directory command on startup. I want to alter the $HOME env var so that tilde commands work and so that entering a 'cd' command ...
1
vote
1answer
19 views

How to use environment variables in applescript

I'd like to use my environment variables, which were defined in my environment.plist file, in my applescript. How do I do that, for instance: log "Glassfish Home: " & AS_HOME Where AS_HOME is ...
0
votes
2answers
34 views

Can I have color ls output automatically if my TERM is “xterm-256color”?

Can I have automatic color output for ls if my TERM environment variable is set to xterm-256color?
3
votes
1answer
273 views

How do I find where an environmental variable got set?

I installed a program to try it out, and decided I didn't like it so I moved the app to the trash. Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental ...
0
votes
1answer
31 views

Set environment variable for the process before startup [duplicate]

I have the following situation: I have Mac OS bundle with application which uses some 3rd party dylib's and those dylib's depend on some env variable, let's name it ENV_VAR. I want to set ENV_VAR to ...
1
vote
1answer
417 views

In Mountain Lion how do I set the PATH environment variable unified 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 ...
0
votes
0answers
102 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 ...
23
votes
4answers
10k 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 ...
7
votes
1answer
660 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 ...
9
votes
2answers
3k views

Problems installing Ruby versions via RVM in Mountain Lion

So I recently joined the Mac world and bought a MacBook - which I love, by the way. I'm having some trouble getting all my dev tools up setup properly and am not quite 100% familiar with the ...
2
votes
2answers
821 views

iPhone claiming low battery in cold weather

With the cold weather, a rather odd problem appeared on my iPhone 4S – whenever I use the phone in weather below ~12 °C, it turns itself off and claims to be out of battery. This most often occurs ...
3
votes
1answer
188 views

/etc/launchd.conf setenv value containing whitespace

In my /etc/launchd.conf file, I added these lines in an effort to figure out exactly how to create globally scoped environment variables whose values contain whitespace. setenv foo1 123456 setenv ...
7
votes
4answers
10k 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. ...
1
vote
1answer
433 views

Why does my iPhone 4S go blank due to over heating?

My iPhone 4S is just 2 weeks old and since the last week it enters this weird mode where the screen goes blank and I can't access the phone, but if someone tries to call me, it rings, proving that the ...
3
votes
3answers
4k 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'm questioning about the quality of such chargers. Are they safe or can they damage ...
1
vote
1answer
269 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?
-1
votes
2answers
351 views

Why can't I control environment variables via /etc/environment?

Google search reveals that "/etc/environment" can be used in OS X to set global environment variables (like JAVA_HOME etc, in key-value pairs). I have tried to add following string to this file on OS ...
0
votes
0answers
102 views

Is it possible to change the PATH variable for a specific user in a single place and have it available on console and GUI applications too?

I am looking for a solution that would allow me to modify PATH for single OS X user but have the PATH available not only to console applications but also to GUI applications.
8
votes
3answers
2k views

How can I keep my iPhone / iPods cooler in a hot vehicle?

Sometimes I have to leave my phone in a hot car and don't have any other options other than leaving it in a locked car in the summer heat. What are ways to keep the phone cooler and not overheat it or ...
8
votes
3answers
5k views

Can I use an iPad on the beach safely?

I want to bring my iPad to a beach to do some reading while on vacation. I am concerned about sand getting into its ports and causing damage. Obviously water would also be a concern, but I am not ...
0
votes
1answer
170 views

Python no longer working, Config directory empty

I tried debugging this on my own, but to no avail. Here's the problem - I have a MacBook Pro 13" OS X 10.7.3 with Python 2.7 (no other version installed) I recently installed MAMP from their ...