When a Mac is used by more than one account or user, there might be times when you want to add a login item to all users' accounts. Now you could login as each user, open System Prefs and then drag the file or app to the Login Items in the Accounts prefpane. But there is an easier way:
Add the item to a system-wide login items list. This list is located in the XML file /Library -> Preferences -> loginwindow.plist. If it already exists, just add the key called AutoLaunchedApplicationDictionary. If the file doesn't exist, paste the whole listing below in an empty file and save it in the right place using the right name. You can use the Property List Editor if you installed the Developer Tools, otherwise use TextEdit (make sure you save the file as plain text, not RTF). Note that the DOCTYPE line is shown on two lines for a narrower display; enter it as one long line with a space replacing the line break.
Add the item to a system-wide login items list. This list is located in the XML file /Library -> Preferences -> loginwindow.plist. If it already exists, just add the key called AutoLaunchedApplicationDictionary. If the file doesn't exist, paste the whole listing below in an empty file and save it in the right place using the right name. You can use the Property List Editor if you installed the Developer Tools, otherwise use TextEdit (make sure you save the file as plain text, not RTF). Note that the DOCTYPE line is shown on two lines for a narrower display; enter it as one long line with a space replacing the line break.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AutoLaunchedApplicationDictionary</key>
<array>
<dict>
<key>Hide</key>
<false/>
<key>Path</key>
<string>/Applications/TextEdit.app</string>
</dict>
</array>
</dict>
</plist>
[robg adds: I haven't tested this one.]
•
[16,015 views]