How auto-launch works on different platforms
masterThe mechanism used to achieve auto-launch varies by operating system:
- Linux / FreeBSD: Creates a
.desktopfile in~/.config/autostart/. - macOS (AppleScript - Default): Uses AppleScript to instruct
System Eventsto add/remove a Login Item. The app will appear in System Preferences > Users & Groups > Login Items. - macOS (Launch Agent): Adds a
.plistfile to the user'sLibrary/LaunchAgentsdirectory. This method is faster and better for daemons, but the app will not appear in the user's Login Items list. - Windows: Adds a registry entry under
\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
Note for macOS users: Both AppleScript and Launch Agent methods are not Mac App Store friendly and may cause rejection due to sandboxing restrictions.