views:

26

answers:

0

How can I see what environmental variables are set for GUI applications on OS X?

On OS X the GUI applications are not able to access the environmental variables used by console apps and you have to edit them in ~/.MacOSX/environment.plist by using the Property Editor.

How can I display them?

I tried to run a python script from the Finder, and do os.system('set') but it looks that it will always get the console environment values and not the GUI one.

If you see some of them starting with BASH, it's sure that you did not run it from the GUI context.

This is for debugging purposes so, any solution that will display these values will do.