Every new feature comes with its own troubleshooting as most will, if only eventually, have problems. Lion comes with a cool new feature where the state of each application is saved and when the application is re-opened the windows are just as you left them when closed, even in the same positions on the screen. This can be pretty useful with something like Terminal, where I often don’t restart the app for long periods of time because I want to see my recent history across multiple sudo’d users. When you open Terminal, the previous commands are grey, but there. But I’ve run into a few instances where an application crashed…
-
-
Disable Automatic Login Programatically
Automatic logon can be enabled for Windows, or Mac OS X. We already discussed disabling automatic logon using a script for Windows, so let’s look at doing so for Mac OS X. The variable that controls automatic logon is stored in /Library/Preferences/com.apple.loginwindow.plist in the autoLoginUser key. By default automatic logon is disabled and so you can simply delete that key to disable it, which you can do with the following command: defaults delete /Library/Preferences/com.apple.loginwindow autoLoginUser You can also enter an autoLoginUser into the field to define the user who will automatically be logged in. You may remember that the loginwindow defaults domain is the same location that login hooks are…