{"id":148,"date":"2010-04-16T09:08:00","date_gmt":"2010-04-16T09:08:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=148"},"modified":"2010-04-16T09:08:00","modified_gmt":"2010-04-16T09:08:00","slug":"setting-path-and-other-variables-on-os-x","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=148","title":{"rendered":"Setting PATH and other variables on OS X"},"content":{"rendered":"<p>Since OS X is a UNIX like many others, I usually put my environment variable settings like PATH in ~\/.profile. However, for Cocoa based apps, that are not run from a terminal, this will not help. Luckily, there is a <a href=\"http:\/\/developer.apple.com\/mac\/library\/documentation\/MacOSX\/Conceptual\/BPRuntimeConfig\/Articles\/EnvironmentVars.html\">documented procedure<\/a> for setting environment variables for Cocoa applications. In short, you just have to edit a plist. If it already exists on your system, just type the following in a terminal:<\/p>\n<div><\/div>\n<div><span  style=\"font-family:'courier new';\"> open ~\/.MacOSX\/environment.plist<\/span><\/div>\n<div><\/div>\n<div>If the file does not yet exist, just run the Property List Editor (e.g. via spotlight), and create that folder and that file.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Since OS X is a UNIX like many others, I usually put my environment variable settings like PATH in ~\/.profile. However, for Cocoa based apps, that are not run from a terminal, this will not help. Luckily, there is a documented procedure for setting environment variables for Cocoa applications. In short, you just have to &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=148\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Setting PATH and other variables on OS X&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/148"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}