I have some mysterious entries in the Login Items > Allow in the Background section in the macOS Ventura System settings.
How can I find out more information about them, such as their command-line arguments?
I have some mysterious entries in the Login Items > Allow in the Background section in the macOS Ventura System settings.
How can I find out more information about them, such as their command-line arguments?
You can get much more verbose output about all startup items simultaneously on the command line with sfltool dumpbtm. The output is fairly self-explanatory, but the tool itself seems almost completely undocumented.
Objective See has a slightly more featureful and documented version that is also open source (compiled binaries can be downloaded from the release page). That tool's README also explains the new consolidation of the various types of login items (LaunchAgents, LaunchDaemons, login items).
In my specific case the "Allow in the Background" login items are coming from /Library/LaunchAgents
Other login related are
Applications that run on Startup
ls -lah /Library/StartupItemsProperty list (plist) items running on startup
ls -lah /Library/LaunchDaemonsls -lah /System/Library/LaunchDaemonsApplications that launch on User Login
ls -lah /Library/LaunchAgentsls -lah ~/Library/LaunchAgentsls -lah /System/Library/LaunchAgentsApplications that run on a set schedule
crontab -lKernel Extensions
kextstatLogin and Logout Hooks
defaults read com.apple.loginwindow LoginHookdefaults read com.apple.loginwindow LogoutHook/Library/LaunchAgents those are Applications that launch on User Login
– Ax_
Dec 16 '22 at 12:43
Some items in the list (but not all) have a 'circle i' info button: ⓘ which you can click to reveal their location in the Finder.
In addition to the LaunchAgents and LaunchDaemons folders in /Library and ~/Library, applications may have items inside their bundle, e.g. inside:
/Applications/AppName.app/Contents/Library/LoginItems/
/Applications/AppName.app/Contents/Library/LaunchAgents/
/Applications/AppName.app/Contents/Library/LaunchDaemons/
which show up in the list.
However, I still have some items whose location I have not been able to identify, so other locations may also be involved.
As to command-line arguments: it's unlikely that such executables will have documentation for users, so apart from calling them with --help or similar, you'd have to search the binary for strings.
These items are launchd Launch Daemons and Agents.
The linked documentation describes the location and format of their defining property list files. Launch Daemons and Agents defined in /System/Library are not shown in the System Settings.
The relevant files can be found in the following locations:
/Library/LaunchDaemons/~/Library/LaunchDaemons//Library/LaunchAgents/~/Library/LaunchAgents/For short,
sfltool dumpbtm show info.
sfltool resetbtm reset database (to clean up uninstalled but still listed apps)
sfltool resetbtm. it removes all there Open at Login items.
– luceat-lux-vestra
Nov 07 '23 at 09:38
sfltool dumpbtm, find and remove unwanted items. URL and Executable Path
– luceat-lux-vestra
Nov 07 '23 at 09:49
xattr -d com.apple.quarantine dumpBTMafter downloading it, but presumably if you're manually slinging binaries around, you can manage that) – Glyph Mar 29 '23 at 02:55sfltool dumpbtmrevealed that apps in Trash still appear on the "Allow in the Background" list. – Aaron Adams May 02 '23 at 08:30sfltool dumpbtm, how do you remove items from the list? – BallpointBen Jul 07 '23 at 04:14sfltoolin a section on platform deployment: https://support.apple.com/en-ca/guide/deployment/depdca572563/web – Clinton Chau Jan 05 '24 at 17:56