Q: Lion: failure to honor the un-setting of "Restore windows when quitting and re-opening apps" ?
I have noticed an annoying "feature" of Lion, and I'm hoping that someone might have found a workaround.
If I uncheck Preferences->General->Restore windows when quitting and re-opening apps, some of my apps still seem to ignore that setting after a restart.
Here's a scenario which illustrates the problem:
- Uncheck the Preferences setting mentioned above.
- Open up a few Finder windows.
- Open up a few Terminal windows.
- In the Terminal Preferences, disable everything related to Window Groups.
- Do a Logout or a Restart. Uncheck Reopen windows when logging back in.
- Relog in.
- Open one Terminal window.
After step 6, all of the Finder windows which were previously open before Logout or Restart will also reopen.
After step 7, all of the Terminal windows which were previously open before Logout or Restart will reopen, in addition to the single Terminal window which is manually opened after login.
The only way I can prevent this from happening to Terminal is to add the following two lines right before the final </dict> tag in /Applications/Utilities/Terminal.app/Contents/Info.plist:
<key>LSUIElement</key>
<string>1</string>
However, this has the undesirable side-effect of not showing anything about Terminal in the menu bar or the dock.
None of this used to happen in Snow Leopard, Leopard, or Tiger. Does anyone know how I can disable this unwanted window-opening-after-relogin behavior in Lion?
Thanks in advance.
.
MacBook Pro, Mac OS X (10.7), Unibody MacBook Pro
Posted on Aug 5, 2011 3:48 PM
Yes. Restore windows when quitting and re-opening apps is indeed unchecked. When I do a Quit and Keep Windows and then restart, the windows indeed return when I start Terminal.
My point was to verify the Preferences option was intact. Not to actually "Quit and Kepp Windows".
I believe this is what you need - look here:
Posted on Aug 6, 2011 5:50 AM