macOS Launchagent Configuration #471
asamahy
started this conversation in
Show and tell
Replies: 1 comment
-
This is all Greek to me but thanks Amr! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A friend asked me how to run this tool in the background to refresh every 45 minutes. this is a launchagent working as of macOS Sonoma 14.6.1.
A LaunchAgent for a single account: (or one per account)
/usr/local/bin/oauth2_imap
(this is required to run an executable without disabling sip).token/
, or place the file there if you already have it.~/Library/LaunchAgents/
namedcom.imapsync.gmail.plist
.launchctl load ~/Library/LaunchAgents/com.imapsync.gmail.plist
thenlaunchctl start ~/Library/LaunchAgents/com.imapsync.gmail.plist
For Multiple Account (using a shellscript):
same steps 1-3
oauth2_gmail.sh
inside/usr/local/bin/oauth2_imap
.oauth2_gmail.sh
and change the field according to your accounts:launchctl load ~/Library/LaunchAgents/com.imapsync.gmail.plist
thenlaunchctl start ~/Library/LaunchAgents/com.imapsync.gmail.plist
Beta Was this translation helpful? Give feedback.
All reactions