I copied the current full
.plist file at the bottom of this question.
Right now I have a
.plist file that I loaded with
launchctl -w load ~/Library/LaunchAgents/local.setgetscreenres.plist to make my OS X run at 2880x1800 (retina) resolution on start-up and this works fine.
However, I don't really know how to control the order of
.plist files in
~/Library/LaunchAgents and sometimes it will take up to a minute before the
setgetscreenres command runs after logging in. Therefore I would like to run this command before I log in, like how iStat does.
I understand that I need to move the
.plist. file to
chown root:wheel, and run
sudo launchctl -w load, but that didn't work. Now I'm thinking there is something wrong/missing in my
Is there something I need to add extra in order to run as
root or launch from
<?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>Label</key> <string>local.setgetscreenres</string> <key>ProgramArguments</key> <array> <string>/Users/hobbes3/Code/setgetscreenres</string> <string>2880</string> <string>1800</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>AbandonProcessGroup</key> <true/> </dict> </plist>