33

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?

The Login Items page in the macOS Ventura System Settings

1

5 Answers 5

29

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).

4
  • 1
    (You do need to xattr -d com.apple.quarantine dumpBTM after downloading it, but presumably if you're manually slinging binaries around, you can manage that)
    – Glyph
    Mar 29, 2023 at 2:55
  • 1
    Thank you! sfltool dumpbtm revealed that apps in Trash still appear on the "Allow in the Background" list. May 2, 2023 at 8:30
  • 4
    Once you run sfltool dumpbtm, how do you remove items from the list? Jul 7, 2023 at 4:14
  • I did run across documentation for the sfltool in a section on platform deployment: support.apple.com/en-ca/guide/deployment/depdca572563/web Jan 5 at 17:56
13

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/StartupItems
  • Property list (plist) items running on startup

    • ls -lah /Library/LaunchDaemons
    • ls -lah /System/Library/LaunchDaemons
  • Applications that launch on User Login

    • ls -lah /Library/LaunchAgents
    • ls -lah ~/Library/LaunchAgents
    • ls -lah /System/Library/LaunchAgents
  • Applications that run on a set schedule

    • crontab -l
  • Kernel Extensions

    • kextstat
  • Login and Logout Hooks

    • defaults read com.apple.loginwindow LoginHook
    • defaults read com.apple.loginwindow LogoutHook
5
  • 1
    Which of these are reflected as "Allow in the background" items?
    – nohillside
    Dec 15, 2022 at 8:13
  • Hi @nohillside you find "Allow in the background" items into /Library/LaunchAgents those are Applications that launch on User Login
    – Ax_
    Dec 16, 2022 at 12:43
  • Problem is that I have "Allow in the background" items which show up in none of the LaunchAgents/LauchDaemons directories (and don't even have an (i) icon to click on).
    – nohillside
    Dec 16, 2022 at 13:10
  • Paste into a terminal the lines you see in my answer, then share those output and also a screenshot of your Login Items Allow in the Background, for sure is somewhere there
    – Ax_
    Dec 17, 2022 at 0:35
  • 1
    For the people who are in this thread and have deleted apps and files from the above mentioned directories. Make sure you empty your trash too :) Apr 9, 2023 at 20:40
9

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.

4

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/
0
-1

For short, sfltool dumpbtm show info. sfltool resetbtm reset database (to clean up uninstalled but still listed apps)

5
  • 1
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Allan
    Jul 15, 2023 at 14:37
  • This answer probably would work better as an edit to apple.stackexchange.com/a/457725/9058.
    – nohillside
    Jul 15, 2023 at 14:46
  • 1
    don't try sfltool resetbtm. it removes all there Open at Login items. Nov 7, 2023 at 9:38
  • Just sfltool dumpbtm, find and remove unwanted items. URL and Executable Path Nov 7, 2023 at 9:49
  • I executed sfltool resetbtm and they all came back when I rebooted
    – nevster
    Nov 13, 2023 at 4:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .