I'd like to have launchd run offlineimap every few minutes to update my mutt message directory. I can't seem to get the plist file for offlineimap to be loaded into without using sudo though.
launchctl load -S Aqua /path/to/plist
I get there error:
launch_msg(): Socket is not connected
Which I believe is related to me not having sudo permissions for the socket.
sudo launchctl load -S Aqua /path/to/plist
Runs without any problems but then offlineimap looks for the .offlineimaprc in /var/root which is unhelpful. I believe this is because offlineimap is running as the root user.
Can anyone offer any suggestions? I'm about to start pulling my hair out.
I was using iTerm2 as my terminal client. This doesn't appear to an Aqua application therefore I can't access the aqua session socket with launchctl. Running the same command in Terminal.app allowed me too.
Thanks to Gordon for the suggestion that lead to the answer.