When someone says 'edit your .plist file' or 'your .profile' or '.bash_profile' etc, this just confuses me. I have no idea where these files are, how to create them if I have to do that, etc, and also why there seem to be so many different ones (why? Do they do different things?)
So could someone please explain very patiently to a previous Windows user (wanting desperately to become more familiar with the pleasant if initially somewhat confusing OS X world) how to do this step by step?
I need the variables to be set both for GUI applications and command line applications, and at the moment it's for an ant script that needs the variables, but there will most likely be other needs as well.
Please note that I have Lion too, since many of the answers you get Googling seem to be outdated for Lion..
Also note that I have practically zero experience using the Terminal. I'm willing to learn, but please explain for a novice..
- The price for Max Shooter One Mouse / Keyboard Converter for PS3/PS4/Xbox 360/Xbox ONE drops. Max Shooter One Mouse / Keyboard Converter for PS3/PS4/Xbox 360/Xbox ONE is available. There are new images or links available for Max Shooter One Mouse / Keyboard Converter for PS3/PS4/Xbox 360/Xbox ONE.
- Platform - Windows, Linux, Mac OS Genre - third-person shooter in the setting of the Second World War and the style of Low Poly-isometric Gameplay - the game will be divided into companies, each company has its own set of missions.
The file profile editor for mayflash muti max shooter v1.05.exe has been seen being distributed by the following URL.
AndersMax Shooter One Profile Editor
Anders15 Answers
First, one thing to recognize about OS X is that it is built on Unix. This is where the .bash_profile comes in. When you start the Terminal app in OS X you get a bash shell by default. The bash shell comes from Unix and when it loads it runs the .bash_profile script. You can modify this script for your user to change your settings. This file is located at:
Update for Mavericks
OS X Mavericks does not use the environment.plist - at least not for OS X windows applications. You can use the launchd configuration for windowed applications. The .bash_profile is still supported since that is part of the bash shell used in Terminal.
Lion and Mountain Lion Only
OS X windowed applications receive environment variables from the your environment.plist file. This is likely what you mean by the '.plist' file. This file is located at:
If you make a change to your environment.plist file then OS X windows applications, including the Terminal app, will have those environment variables set. Any environment variable you set in your .bash_profile will only affect your bash shells.
Generally I only set variables in my .bash_profile file and don't change the .plist file (or launchd file on Mavericks). Most OS X windowed applications don't need any custom environment. Only when an application actually needs a specific environment variable do I change the environment.plist (or launchd file on Mavericks).
It sounds like what you want is to change the environment.plist file, rather than the .bash_profile.
One last thing, if you look for those files, I think you will not find them. If I recall correctly, they were not on my initial install of Lion.
Edit: Here are some instructions for creating a plist file.
- Open Xcode
- Select File -> New -> New File..
- Under Mac OS X select Resources
- Choose a plist file
- Follow the rest of the prompts
To edit the file, you can Control-click to get a menu and select Add Row. You then can add a key value pair. For environment variables, the key is the environment variable name and the value is the actual value for that environment variable.
Once the plist file is created you can open it with Xcode to modify it anytime you wish.
Your .profile
or .bash_profile
are simply files that are present in your 'home' folder. If you open a Finder window and click your account name in the Favorites pane, you won't see them. If you open a Terminal window and type ls
to list files you still won't see them. However, you can find them by using ls -a
in the terminal. Or if you open your favorite text editor (say TextEdit since it comes with OS X) and do File->Open and then press Command+Shift+. and click on your account name (home folder) you will see them as well. If you do not see them, then you can create one in your favorite text editor.
Now, adding environment variables is relatively straightforward and remarkably similar to windows conceptually. In your .profile
just add, one per line, the variable name and its value as follows:
etc.
If you are modifying your 'PATH' variable, be sure to include the system's default PATH that was already set for you:
Now here is the quirky part, you can either open a new Terminal window to have the new variables take effect, or you will need to type .profile
or .bash_profile
to reload the file and have the contents be applied to your current Terminal's environment.
You can check that your changes took effect using the 'set' command in your Terminal. Just type set
(or set | more
if you prefer a paginated list) and be sure what you added to the file is there.
As for adding environment variables to GUI apps, that is normally not necessary and I'd like to hear more about what you are specifically trying to do to better give you an answer for it.
Karl HillHere's a bit more information specifically regarding the PATH variable in Lion OS 10.7.x:
If you need to set the PATH globally, the PATH is built by the system in the following order:
- Parsing the contents of the file
/private/etc/paths
, one path per line - Parsing the contents of the folder
/private/etc/paths.d
. Each file in that folder can contain multiple paths, one path per line. Load order is determined by the file name first, and then the order of the lines in the file. - A
setenv PATH
statement in/private/etc/launchd.conf
, which will append that path to the path already built in #1 and #2 (you must not use $PATH to reference the PATH variable that has been built so far). But, setting the PATH here is completely unnecessary given the other two options, although this is the place where other global environment variables can be set for all users.
These paths and variables are inherited by all users and applications, so they are truly global -- logging out and in will not reset these paths -- they're built for the system and are created before any user is given the opportunity to login, so changes to these require a system restart to take effect.
BTW, a clean install of OS 10.7.x Lion doesn't have an environment.plist
that I can find, so it may work but may also be deprecated.
it prints current path value
Then do vim ~/.bash_profile
and write
here you are appending to the old path, so preserves the old path and adds your new path to it
About Photo Editors Manipulate digital photos by adding a plethora of effects to them. Resize, reshape, crop, add text, or use any number of a variety of tools to alter your images. The Mac is still the best device for serious photo editing, so you need some serious photo editing apps to make an impact. The built-in Photos app on Mac offers several useful photo editing tools. You can crop, adjust lighting and color, set the white balance, add filters, remove unwanted blemishes, and a few more things. 11 rows As far as Mac photo editing software goes, you should be able to find a basic editing program for under $100, typically starting for as little as $30. Paying more than $100 will often land you a professional editing program with additional editing tools and presets compared to the basic versions. Install Movavi Photo Editor on any Apple personal computer compatible with Mac OS versions 10.7–10.13, for example, OS X Lion, OS X Yosemite, OS X El Capitan, macOS Sierra. The app is so easy to learn that you don’t even have to know the basics about how to edit photos on Mac. Photo editor for mac. Dubbed by BBC as the lite Photoshop, Fotor is the best free photo editing software for mac! Ranking top in Mac Store in over 80 countries, Fotor is the only image editor you need on Mac!
then do
this will execute it and add the path
then again check with
1.21 gigawattsUnfortunately none of these answers solved the specific problem I had.
Here's a simple solution without having to mess with bash
. In my case, it was getting gradle
to work (for Android Studio
).
Btw, These steps relate to OSX (Mountain Lion 10.8.5)
- Open up Terminal.
Run the following command:
sudo nano /etc/paths
(orsudo vim /etc/paths
for vim)- Go to the bottom of the file, and enter the path you wish to add.
- Hit control-x to quit.
- Enter 'Y' to save the modified buffer.
Open a new terminal window then type:
echo $PATH
You should see the new path appended to the end of the PATH
I got these details from this post:
I hope that can help someone else
wired00wired00Simplified Explanation
This post/question is kind of old, so I will answer a simplified version for OS X Lion users.By default, OSX Lion does not have any of the following files:
- ~/.bashrc
- ~/.bash_profile
- ~/.profile
At most, if you've done anything in the terminal you might see ~/.bash_history
What It Means
You must create the file to set your default bash commands (commonly in ~/.bashrc). To do this, use any sort of editor, though it's more simple to do it within the terminal:
- %> emacs .profile
- [from w/in emacs type:]
source ~/.bashrc
- [from w/in emacs type:]
Ctrl + x Ctrl + s
(to save the file) - [from w/in emacs type:]
Ctrl + x Ctrl + c
(to close emacs) - %> emacs .bashrc
- [from w/in emacs type/paste all your bash commands, save, and exit]
The next time you quit and reload the terminal, it should load all your bash preferences. For good measure, it's usually a good idea to separate your commands into useful file names. For instance, from within ~/.bashrc, you should have a source ~/.bash_aliases
and put all your alias commands in ~/.bash_aliases.
What worked for me is to create a .launchd.conf
with the variables I needed:
This file is read by launchd at login. You can add a variable 'on the fly' to the running launchd using:
In fact, .launchd.cond
simply contains launchctl commands.
Variables set this way seem to be present in GUI applications properly.
Navigate to this folder now and double-click the Script Editor icon to launch the application. NOTE: The following description and illustrations are for the Script Editor application included in Mac OSX 10.5. Earlier versions will have a different design. The Script Editor application icon. What is script editor on mac used for. How can the answer be improved?
If you happen to be trying to set your LANG or LC_ variables in this way, and you happen to be using iTerm2, make sure you disable the 'Set locale variables automatically' setting under the Terminal tab of the Profile you're using. That seems to override launchd's environment variables, and in my case was setting a broken LC_CTYPE causing issues on remote servers (which got passed the variable).
(The environment.plist still seems to work on my Lion though. You can use the RCenvironment preference pane to maintain the file instead of manually editing it or required Xcode. Still seems to work on Lion, though it's last update is from the Snow Leopard era. Makes it my personally preferred method.)
Setup your PATH environment variable on Mac OS
Open the Terminal program (this is in your Applications/Utilites folder by default).Run the following command
This will open the file in the your default text editor.
For ANDROID SDK as example :
You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use '/Development/android-sdk-macosx' as the directory the SDK is installed in. Add the following line:
Save the file and quit the text editor.Execute your .bash_profile to update your PATH.
Now everytime you open the Terminal program you PATH will included the Android SDK.
Charaf JRACharaf JRAThis was pretty straight forward and worked for me, in terminal:
A similar response was here: http://www.mac-forums.com/forums/os-x-operating-system/255324-problems-setting-path-variable-lion.html#post1317516
Open Terminal:
Apply changing to system (no need restart computer):
(Also work with macOS Sierra 10.12.1)
Do Nhu VyDo Nhu VyI had problem with Eclipse (started as GUI, not from script) on Maverics that it did not take custom PATH. I tried all the methods mentioned above to no avail. Finally I found the simplest working answer based on hints from here:
Go to /Applications/eclipse/Eclipse.app/Contents folder
Edit Info.plist file with text editor (or XCode), add LSEnvironment dictionary for environment variable with full path. Note that it includes also /usr/bin etc:
Reload parameters for app with
Restart Eclipse
Let me illustrate you from my personal example in a very redundant way.
- First after installing JDK, make sure it's installed.
Sometimes macOS or Linux automatically sets up environment variable for you unlike Windows. But that's not the case always. So let's check it. The line immediately after echo $JAVA_HOME would be empty if the environment variable is not set. It must be empty in your case.
Now we need to check if we have bash_profile file. You saw that in my case we already have bash_profile. If not we have to create a bash_profile file.
Create a bash_profile file.
Check again to make sure bash_profile file is there.
Now let's open bash_profile file. macOS opens it using it's default TextEdit program.
This is the file where environment variables are kept. If you have opened a new bash_profile file, it must be empty. In my case, it was already set for python programming language and Anaconda distribution. Now, i need to add environment variable for Java which is just adding the first line. YOU MUST TYPE the first line VERBATIM. JUST the first line. Save and close the TextEdit. Then close the terminal.
Open the terminal again. Let's check if the environment variable is set up.
I took the idiot route.Added these to the end of /etc/profile
created a folder /etc/environmentscreate a file in it called 'oracle' or 'whatever' and added the stuff I needed set globally to it.
/etc$ cat /etc/environments.d/Oracle
More detail, which may perhaps be helpful to someone:
Due to my own explorations, I now know how to set environment variables in 7 of 8 different ways. I was trying to get an envar through to an application I'm developing under Xcode. I set 'tracer' envars using these different methods to tell me which ones get it into the scope of my application. From the below, you can see that editing the 'scheme' in Xcode to add arguments works, as does 'putenv'. What didn't set it in that scope: ~/.MACOS/environment.plist, app-specific plist, .profile, and adding a build phase to run a custom script (I found another way in Xcode [at least] to set one but forgot what I called the tracer and can't find it now; maybe it's on another machine..)
GPU_DUMP_DEVICE_KERNEL is 3
GPU_DUMP_TRK_ENVPLIST is (null)
GPU_DUMP_TRK_APPPLIST is (null)
GPU_DUMP_TRK_DOTPROFILE is (null)
GPU_DUMP_TRK_RUNSCRIPT is (null)
GPU_DUMP_TRK_SCHARGS is 1
GPU_DUMP_TRK_PUTENV is 1
.. on the other hand, if I go into Terminal and say 'set', it seems the only one it gets is the one from .profile (I would have thought it would pick up environment.plist also, and I'm sure once I did see a second tracer envar in Terminal, so something's probably gone wonky since then. Long day..)
Step1: open ~/.bash_profile
Now a text editor opens:
Step2: variable name should be in capitals. in this example variable is NODE_ENV
Step3: export NODE_ENV=development
Save it and close.
Restart your system.
Done.
To check env variable: open terminal and type
Muhammad Omer Aslamprotected by Mark RotteveelJan 13 '18 at 13:22
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Is There A Max Shooter One Profile Editor For Mac Os
Not the answer you're looking for? Browse other questions tagged macosenvironment-variablesosx-lion or ask your own question.
Mayflash Max Shooter One Profile Editor V1.02
Now, before you comment ERHMAHGERD HE'S A CHEATER! AHH FLAMEE listen up.
I recently bought a Max Shooter One for my PS4 to play games like Fallout 4 and Uncharted 4.
Mayflash Max Shooter One Profile Editor
My question is, is there any difference between the XIM4 and the Max Shooter One other than that one has an app for mobile devices? Is there any noticeable input lag on one or the other or dead-zones even when you optimize the settings? (Don't say one is programmable on the fly because they both are)
Next, what do you guys feel about the debate with KB/M and Single-player games vs. Multi-player games? I know with myself, I'll probably be using this with GTA V and doing free aim or assisted aim, and my dad occasionally visits me, and when he does, he'll play a little Fallout 4, and was wanting to play on KB/M, but without Mods. (My computer and Fallout 4 is riddled with mods, so he refuses to play.)
I come from a PC background, but originally I had an SNES and a PS1, then moved to a PS2 and Gamecube, so I've always been used to a controller, but more recently since I've been PC gaming, I've wanted to use a KB/M on PS4 other than on the 3 games that are supported, so I looked into it and found that the Max shooter One was the cheapest option (for only $50 on Amazon, with Prime) so I decided to go with that.
If you think that the KB/M to Console is a huge unfair advantage, just know that in PC there are these same disadvantages, so it really goes both ways, don't flame about it please, keep this civil.
Comments are closed.