{"id":239,"date":"2013-05-02T10:56:27","date_gmt":"2013-05-02T14:56:27","guid":{"rendered":"http:\/\/www.tks-designs.com\/blog\/?p=239"},"modified":"2013-05-02T10:56:53","modified_gmt":"2013-05-02T14:56:53","slug":"osx-paths-x11-and-paths-d","status":"publish","type":"post","link":"https:\/\/www.tks-designs.com\/blog\/?p=239","title":{"rendered":"OSX Paths, X11 and paths.d"},"content":{"rendered":"<p>If you&#8217;re working with a renderer from the command line, you&#8217;ll often need the location of that renderer in the path, so you can call it easily (without always needing the full path). On OSX, there is a folder <strong>paths.d<\/strong> under \/etc, where you can place text files that will contain paths to be appended to <strong>$PATH<\/strong> in terminal sessions:<\/p>\n<pre><strong>\/etc\/paths.d\/Nuke6.3v8<\/strong> <em>contents:<\/em><br \/><br \/><code>\/Applications\/Nuke6.3v8\/Nuke6.3v8.app\/Contents\/MacOS<\/code><\/pre>\n<p>This morning I was attempting to add some other versions to the path (7.0v1, 7.0v6) and I was running into some ridiculous errors. When I added another file:<\/p>\n<pre><strong>\/etc\/paths.d\/Nuke7.0v1<\/strong> <em>contents:<\/em><br \/><br \/><code>\/Applications\/Nuke7.0v1\/Nuke7.0v1.app\/Contents\/MacOS<\/code><\/pre>\n<p>what I got in my path was instead<\/p>\n<pre><code>\/Applications\/Nuke7.0v1\/Nuke7.0v1.app\/Contents\/MacOS<em>1\/bin<\/em><\/code><\/pre>\n<\/p>\n<p>Why? I have no idea. I tried different file names, different text encoding types, etc and was always getting that extra text on the end. I noticed that I had one other file in my paths.d, from the installation of the osx developer tools: <code>50-X11<\/code>. When I removed that file, everything worked! However, I want to keep that in my path (not sure what apps might be there), so I renamed it to <strong>x11<\/strong> and now that extra text is gone.<\/p>\n<p>I hope this helps someone else in the same situation. I don&#8217;t understand what macintosh is doing half the time, and this is that half.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re working with a renderer from the command line, you&#8217;ll often need the location of that renderer in the path, so you can call it easily (without always needing the full path). On OSX, there is a folder paths.d under \/etc, where you can place text files that will contain paths to be appended <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/www.tks-designs.com\/blog\/?p=239\" class=\"more-link\"><span>Continue Reading &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"kia_subtitle":"part rant, part fix to an obnoxious bug: \"1\/bin\"","footnotes":""},"categories":[15,16,12],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-bash","category-osx","category-technical-direction"],"_links":{"self":[{"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":10,"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tks-designs.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}