Launchd
launchd and macOS Sessions
A question asked about how a system wide daemon process could create a notification for a user on macOS. The answer is more complicated than you might expect.
Launching a graphical application as another user on macOS
A question was asked about how to launch a graphical application as another user on macOS.