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

Click here to return to the 'Adding and removing individual login items from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Adding and removing individual login items from Terminal
Authored by: BlaatMekker on Jan 06, '12 01:34:35PM
I just found a way to remove individual items from a dict. I haven't tested it on anything that I didn't need to, though it should also work for this hint. To remove a line:

/usr/libexec/PlistBuddy -c "Delete :Java:JVMArchs:0" /Applications/
The relevant part of the Info.plist before modification was:

It's easy to guess what happens after running this command. To add an item, this command is used:

/usr/libexec/PlistBuddy -c "Add :Java:JVMArchs:0 string 'x86_64'" /Applications/
For more info, just find the PlistBuddy man-page. This tool may possibly only be available when you have Xcode installed.

[ Reply to This | # ]