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)

1
vote
0answers
28 views

How do items in the 'Applications' folder get on the path?

How does the 'Applications' folder get on the path? For example, I installed Chrome browser into the Applications folder on my Mac and I can type chrome at a bash shell prompt to start it. Now, if I ...
0
votes
2answers
39 views

Is it possible to set the JAVA_HOME env in El Captitan?

I am unable to set the JAVA_HOME environment variable osx. I added the following line to my .bash_profile export JAVA_HOME=`/usr/libexec/java_home` and sourced it afterwards; yet when I printenv or ...
1
vote
1answer
38 views

How to change JAVA_HOME with a Bash script

I have created a Bash script with the following line: export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home" 2> bash_errors.txt I have also made the file executable ...
4
votes
0answers
3k 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 ...
1
vote
1answer
64 views

Setting locale via launch daemon - downside to this approach?

I have the same problem as in this post here that R started in ESS / Emacs can not set the locales: R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical ...
0
votes
0answers
82 views

Will the Apple Watch charger have too much magnetic field and affect an external hard drive or credit cards?

One time I disconnected the Apple Watch charger and the magnetic attachment landed right next to an external hard drive. Since the charger uses magnetic field to charge the Apple Watch, will placing ...
3
votes
1answer
79 views

Is it safe to stick an Apple Watch charger to a piece of metal when not in use?

Maybe this is a general question for magnetic / wireless charging. I'd like to let my apple watch charger stick to a metal lamp on my nightstand when not in use. Is this safe or will the charger be ...
1
vote
1answer
39 views

Can you save a work session and reopen it later?

Imagine you are working on a book, for which you need 5 precise internet tabs/pages to be open at the same time, Apple Pages, Dictionary, and, I don't know, a classical music CD in iTunes that ...
1
vote
0answers
98 views

Set environment variable for iCloud Drive path

Foreword Setting env vars on Yosemite seems to be really a pain, but I've managed doing it thanks to this clever way: ...
1
vote
0answers
77 views

Environment variable for a user's Documents folder?

When I'm developing with Xcode or maybe using tools like gulp or grunt I notice that the tools try to access resources from an incorrect path. I've observed the problem in more that one program so ...
2
votes
1answer
76 views

Fan for MacBook Air?

Macbook Air gets hot near its processor and gets sluggish for a while, whenever I make "heavy" tasks at the same time. I wonder if a fan under its base would make any difference since mac has no ...
0
votes
1answer
190 views

Shell set environment variables for command

I want to run a program in Terminal and set its environment variables. According to my research one can do this using: VARIABLE="value" VARIABLE2="value2" run_program Now I'd like to set a variety ...
5
votes
5answers
14k 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 ...
4
votes
0answers
656 views

OS X Yosemite permanent environement variables

Since I upgraded to OS X Yosemite I do have massive problems with environment variables that I really, really NEED for development of some projects. The Problems is: Every time I install some kind ...
1
vote
1answer
77 views

Public wifi issue

I am living in an RV park while going to school. When I moved in, the park's wifi worked great, but recently a new (unrelated) wifi network popped up. When I try to get on the park's wifi on my ...
2
votes
1answer
102 views

How do I create terminal session independent env vars on OS 10.10?

I read Mortimer's answer here http://stackoverflow.com/questions/25385934/setting-environment-variables-via-launchd-conf-no-longer-works-in-os-x-yosemite and added this file in ...
3
votes
1answer
3k views

After Yosemite, can't print; CUPS error_log: “/bin/bash: gs: command not found”

My printer stopped working since I upgraded to Yosemite. The print queue window says only "Stopped - 'Filter' failed". From /var/log/cups/error_log: ... D [28/Oct/2014:21:46:49 -0700] [Job 4] PID ...
16
votes
3answers
25k views

In OSX Yosemite, why can I set many environment variables for GUI apps, but cannot set the specific variable PATH

After I had sorted out OSX' PATH issues up to the Mavericks release, the problems come back in Yosemite!!! So I want to mimic the old launch.conf feature in the new Mac OSX 10.10 Yosemite release, ...
0
votes
0answers
185 views

Is the iPhone 6 waterproof or water-resistant?

Before the iPhone 6 was officially announced by Apple, several reports claimed that the device will be waterproof. However, the announcement and specifications on Apple's site make no mention of it. ...
0
votes
1answer
307 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 ...
0
votes
1answer
743 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
1answer
2k 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: ...
1
vote
0answers
108 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 ...
6
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?
2
votes
2answers
906 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 ...
3
votes
2answers
5k 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?
1
vote
1answer
1k 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
208 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 ...
22
votes
5answers
41k 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 ...
27
votes
6answers
156k 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 ...
23
votes
8answers
39k 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 ...
3
votes
1answer
967 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 ...
4
votes
2answers
5k 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, ...
2
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?
2
votes
2answers
343 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
5k 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 ...
4
votes
1answer
2k 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 ...
1
vote
2answers
546 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?
0
votes
1answer
164 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 ...
3
votes
1answer
518 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 ...
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 ...
7
votes
5answers
4k 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 ...
8
votes
3answers
17k 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 ...
6
votes
1answer
751 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 ...
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 ...
1
vote
1answer
1k 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 ...
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 ...
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?
8
votes
2answers
2k 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 ...
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. ...