-
Notifications
You must be signed in to change notification settings - Fork 13
Logout
Bart Reardon edited this page May 20, 2023
·
4 revisions
Logout is not a directly supported action as macOS does not supply a convenient mech, however creative use of login-window
could get you part of the way:
- create a
login-every
orboot-every
script that touches a flag file indicating a login event for that user has occurred - create a
login-window
script that checks for the presence of the flag and perform processing before removing the flag
This workflow has the advantage that the "logout" script will run whether the user logged out or performed a reboot
@aysiu has created a fork of Outset 3 called Offset which will handle scripts at logout.