Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Add login items to all user accounts at once System
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.
<?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.]
    •    
  • Currently 2.40 / 5
  You rated: 4 / 5 (5 votes cast)
 
[16,015 views]  

Add login items to all user accounts at once | 4 comments | Create New Account
Click here to return to the 'Add login items to all user accounts at once' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add login items to all user accounts at once
Authored by: mm2270 on May 26, '04 01:25:40PM
OK, maybe I'm dumb, but what item is added to the Login items with this hint? The "AutoLaunchApplicationDictionary"? If so, what is that? How do I add in my own auto launch items?

Am I missing something here?

[ Reply to This | # ]
Add login items to all user accounts at once
Authored by: adrianm on May 26, '04 01:39:22PM

Maybe not dumb, but you did miss something.
The sample file clearly shows TextEdit as the app to be launched.



[ Reply to This | # ]
Add login items to all user accounts at once
Authored by: mm2270 on May 26, '04 03:59:47PM
Ah! Thanks. Somehow I did miss that.

[ Reply to This | # ]
Add login items to all user accounts at once
Authored by: ssevenup on May 26, '04 09:12:04PM

I would be more interested in how to manipulate Dock items for all accounts at once. But I'm not sure you can do that without a server getting involved.

--MM


---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]