{"id":12849,"date":"2012-03-08T10:38:00","date_gmt":"2012-03-08T18:38:00","guid":{"rendered":"https:\/\/mikeindustries.com\/blog\/?p=12849"},"modified":"2016-05-25T23:34:25","modified_gmt":"2016-05-26T06:34:25","slug":"how-to-permanently-prevent-os-x-10-7-lion-from-ever-re-opening-apps-after-a-restart","status":"publish","type":"post","link":"https:\/\/mikeindustries.com\/blog\/archive\/2012\/03\/how-to-permanently-prevent-os-x-10-7-lion-from-ever-re-opening-apps-after-a-restart","title":{"rendered":"How to Permanently Prevent OS X 10.7 Lion from ever Re-Opening Apps After a Restart"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/inline\/restart.jpg\" alt=\"\" title=\"\" width=\"450\" height=\"243\" class=\"border\" \/><\/p>\n<p>While the latest version of Mac OS X, Lion, is generally wonderful, there is one &#8220;feature&#8221; that annoys thousands of people to no end: whenever your machine is restarted, every single application you happen to have open at the time is also relaunched and restored to the state it was in before you restarted. If you restart manually via the &#8220;Restart&#8230;&#8221; menu item, there is a checkbox you can uncheck which is supposed to shut off this behavior but it doesn&#8217;t always work. Additionally, if your computer restarts for any other reason &#8212; e.g. a power failure or a crash &#8212; you don&#8217;t even have the option of <em>trying<\/em> to prevent this behavior.<\/p>\n<p>The downside of the behavior is obvious: it increases the time it takes to start up your machine into a steady state and it re-opens apps you may not be using anymore.<\/p>\n<p>If you want to prevent this behavior entirely, there is now a foolproof, fully reversible way to do it. Simply:<\/p>\n<ol>\n<li>Quit all of your apps.<\/li>\n<li>Navigate to here: <code>~\/Library\/Preferences\/ByHost\/com.apple.loginwindow.*.plist<\/code> (whereby * is a bunch of characters)<\/li>\n<li>Click the file, do a <code>File > Get Info<\/code> (or command-I if you&#8217;re a pro), and lock it using the <code>Locked<\/code> checkbox.<\/li>\n<\/ol>\n<p>Voila. You&#8217;ve now prevented Lion from saving what apps and windows are open. To reverse this setting, simply unlock the file!<\/p>\n<p>Another helpful hint as well: Lion, by default, hides your <code>~\/Library\/<\/code> folder. To make it visible again without showing all of your other invisible files, simply open up Terminal and type:<\/p>\n<p><code>chflags nohidden ~\/Library\/<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While the latest version of Mac OS X, Lion, is generally wonderful, there is one &#8220;feature&#8221; that annoys thousands of people to no end: whenever your machine is restarted, every single application you happen to have open at the time is also relaunched and restored to the state it was in before you restarted. If [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,44,282,39],"tags":[],"class_list":["post-12849","post","type-post","status-publish","format-standard","hentry","category-code","category-miscellany","category-original","category-technology"],"_links":{"self":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts\/12849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/comments?post=12849"}],"version-history":[{"count":0,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts\/12849\/revisions"}],"wp:attachment":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/media?parent=12849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/categories?post=12849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/tags?post=12849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}