If you want to step away from your computer while your desktop loads (without enabling the unsafe auto-login feature), this script will begin loading OS X before you log in.
We've shown you how to make Windows load up your desktop and startup apps before you log in, and it turns out it's even Simpler in OS X, as TUAW demonstrates. All you need to do is head to System Preferences > Accounts and click Login Options to enable Auto-Login (that's right, you want to enable auto-login). Then, copy and paste the following code into TextEdit:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>AbandonProcessGroup</key> <true/> <key>Label</key> <string>com.luomat.loginhook</string> <key>ProgramArguments</key> <array> <string>/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession</string> <string>-suspend</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
Go to Format > Make Plain Text and save the file as
com.luomat.loginhook-2.plist and put it in
~/Library/LaunchAgents. After rebooting your computer, you'll notice the login screen shows up, but when you log in, your desktop and all your startup apps will be loaded and ready to go.
What this setup does is automatically log you in, but invoke fast user-switching as soon as it does. That way, your desktop begins to load, but it prompts you to log yourself in before you can actually do anything. This way, you can turn on your computer and step away for a moment while your programs load — without anyone else being able to get into your system. Hit the link for more ways to configure this setup.