{"id":7,"date":"2008-05-27T13:11:17","date_gmt":"2008-05-27T18:11:17","guid":{"rendered":"http:\/\/developer.casgrain.com\/?p=7"},"modified":"2008-05-27T13:12:00","modified_gmt":"2008-05-27T18:12:00","slug":"search-paths-for-quicklook-plugins","status":"publish","type":"post","link":"http:\/\/developer.casgrain.com\/?p=7","title":{"rendered":"Search Paths for QuickLook plugins"},"content":{"rendered":"<p>You can <a href=\"http:\/\/developer.apple.com\/documentation\/UserExperience\/Conceptual\/Quicklook_Programming_Guide\/QLDebugTest\/chapter_11_section_2.html#\/\/apple_ref\/doc\/uid\/TP40005020-CH14-SW3\">debug your QuickLook<\/a> plugin easily with the help of <code>qlmanage<\/code>. But sometimes, you don&#8217;t want to dump your plugin in <code>\/Library\/QuickLook\/<\/code> every time you build because you run as a regular (non-admin) user.<\/p>\n<p>\nQuickLook has a search path feature. You can set the search order, and in my case I use my two build folders (Debug and Release) before the main <code>\/Library\/QuickLook\/<\/code> folder. It is a global, per-user property (hence the <code>-g<\/code>), and as far as I know, the array can contain as many values as you want<\/p>\n<p><pre>\ndefaults write -g QLGeneratorSearchPath -array \"\/Volumes\/DevSource\/xcodebuild\/Debug\" \\\n                                               \"\/Volumes\/DevSource\/xcodebuild\/Release\/\" \\\n                                               \"\/Library\/QuickLook\/\"\n<\/pre>\n<p>\nIt&#8217;s probably a good idea to leave <code>\/Library\/QuickLook\/<\/code> in there as the last element of the array.<\/p>\n<p>\nIf you want to delete the search path, simply type:<\/p>\n<p><pre>\ndefaults delete -g QLGeneratorSearchPath\n<\/pre>\n<p>This does not seem to be documented, but it works for me; as usual, YMMV&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can debug your QuickLook plugin easily with the help of qlmanage. But sometimes, you don&#8217;t want to dump your plugin in \/Library\/QuickLook\/ every time you build because you run as a regular (non-admin) user. QuickLook has a search path feature. You can set the search order, and in my case I use my two [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-graphics","category-leopard"],"_links":{"self":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":0,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}