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

5
votes
1answer
593 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 ...
5
votes
1answer
297 views

Is $HOME/.MacOSX/environment.plist still used in OS X 10.9.2 for setting global environment variables?

Is $HOME/.MacOSX/environment.plist still recognized/used in OS X 10.9.2 for setting global environment variables? Apple's official documentation does not say explicitly it's deprecated, AFACT: ...
4
votes
4answers
30k 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 ...
4
votes
2answers
936 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, ...
0
votes
1answer
48 views

How can I set a user-specific environment variable that includes a space character?

I'd like to add an environment variable for a specific account where the variable has a space. It seems that editing .bash_profile like below doesn't work: export ENV_VAR=“/Applications/Android ...
7
votes
3answers
1k views

Turn off iMac main screen while working on external

I have an external display on my iMac and I would like to work only on the external display and turn off/disable the iMac one, just like the "clamshell mode" on a Macbook for example. It works with ...
3
votes
1answer
344 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
6answers
3k views

Can I put out a cigarette on aluminum Mac Books?

Would it damage to put out cigarettes on the chassis of aluminum mac books?
14
votes
7answers
16k 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 ...
7
votes
3answers
8k 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 ...
0
votes
1answer
152 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 ...
13
votes
4answers
14k 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 ...
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 ...
1
vote
0answers
41 views

Adding comments to /etc/launchd.conf

Since I migrate to Maverick, I cannot add comments anymore to entries in /etc/launchd.conf, like: # setenv VAR VALUE Is there a new format for adding comments there ? When I restart launchctl ...
1
vote
1answer
246 views

R shiny crash on loading examples (__cxa_guard_acquire detected deadlock) change default C++ standard library

I wanted to try out R Shiny but whenever I try any of the examples my R crashes: > require(shiny) Loading required package: shiny > runExample("01_hello") libc++abi.dylib: __cxa_guard_acquire ...
8
votes
2answers
1k 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 ...
0
votes
2answers
738 views

Switching the desktop enviroment

Would it be possible to change the default environment to something like Cinnamon? Or to a window manager like openbox or awesomewm?
3
votes
1answer
476 views

Retina Macbook Pro 15'' overheating?

I got this RMBP mid 2012. I am now noticing overheating problems when I browse the internet + about 15 tabs of youtube open, mainly music. I also notice that my battery quickly depletes during this ...
0
votes
1answer
666 views

Dynamically setting HOME environment variable in a launchd script?

Continue from this topic, I ended up with: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" ...
1
vote
1answer
83 views

Are dustproof screen protectors for real?

With search engines, I can find supposedly dustproof screen protectors for sale? e.g.: http://www.amazon.ca/Clear-Scratch-Resistant-Screen-Protectors/dp/B003JBRSXY ...
1
vote
1answer
3k views

Fixing Water Damaged iPhone

My iPhone screen started blinking white is now completely white. Can someone tell me if this is fixable?
2
votes
1answer
182 views

Setting up environment variables for GUI apps?

Transitioning from Windows to the Mac. In Windows, I had a lot of environmental variables set-up that I used to speed up my work. Thinks like DEVDIR=C:\WORKDOCS\DOCS_jaravj\PROJ\dev ...
1
vote
2answers
1k 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 ...
3
votes
1answer
645 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
223 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
362 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
122 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 ...
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 ...
9
votes
2answers
4k 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 ...
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. ...
1
vote
1answer
886 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
10k 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
2k 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
534 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
110 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
6k 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
9k 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
336 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 ...