{"id":17527045,"url":"https://github.com/luckman212/login-items-dump","last_synced_at":"2025-04-13T15:51:09.792Z","repository":{"id":204771139,"uuid":"712622817","full_name":"luckman212/login-items-dump","owner":"luckman212","description":"Parse the output of `sfltool dumpbtm`","archived":false,"fork":false,"pushed_at":"2023-11-03T04:26:50.000Z","size":868,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T14:41:59.267Z","etag":null,"topics":["macos","sonoma","ventura"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luckman212.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-31T20:57:28.000Z","updated_at":"2024-10-02T06:49:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"91452949-4556-4e80-beaa-1d7cb50b28b8","html_url":"https://github.com/luckman212/login-items-dump","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"7f690c479fdffd3efb2f9537b3efd10b0c26be4d"},"previous_names":["luckman212/login-items-dump"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Flogin-items-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Flogin-items-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Flogin-items-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckman212%2Flogin-items-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luckman212","download_url":"https://codeload.github.com/luckman212/login-items-dump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741148,"owners_count":21154249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","sonoma","ventura"],"created_at":"2024-10-20T15:03:00.961Z","updated_at":"2025-04-13T15:51:09.766Z","avatar_url":"https://github.com/luckman212.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cimg src=icon.png width=128\u003e\n\n# login-items-dump\n\nInspired by [this AskDifferent post](https://apple.stackexchange.com/questions/465920/how-to-determine-details-of-backgound-process), this is a little mashup of `sfltool` + `awk` that enumerates, parses and outputs details about your Mac's Startup Items/Login Items, which are stored in a *Background Task Management* aka **BTM** database.\n\nThis information is normally shown with very limited info in System Settings → General → Login Items. For example:\n\n\u003cimg src=image1.png width=478\u003e\n\nNote how it's missing any information about what or where those programs are, Bundle IDs, file paths, etc. Not very useful.\n\n### Setting up\n\nClone this repo (if you don't know how to do that, click the green **Code** button above, then **Download ZIP**) and copy the `login-items-dump` script to your `/usr/local/bin` directory. You can then run the command from a Terminal.\n\n### Usage\n\nOpen a Terminal and type\n```\nlogin-items-dump\n```\n\n\u003e **N.B.** *executing `sfltool dumpbtm` requires root permissions, so you will likely be asked for your password. For unattended scripting, you can use `SUDO_ASKPASS` to avoid the password prompt, but that's beyond the scope of this README.*\n\nThe output is tab-separated, and contains 5 columns which should contain useful information:\n\n- UUID\n- Name (DeveloperName) (daemons are prefixed with a 👿 emoji)\n- BundleID\n- URL (typically a URL-encoded file path)\n- ExecPath\n\nYou can parse the output further with your favorite unix tools like `grep`, `sed`, or `awk`.\n\n\u003e **Note about Daemons**\n\u003e If you see _\"affects all users\"_ in small text below the item in the Settings app, it indicates that item is a daemon. That 👿 may help you identify such items when there are multiple items with the same Name. For example:\n\u003e \n\u003e \u003cimg src=image3.png width=464\u003e\n\u003e \n\u003e \u003cimg src=image4.png width=838\u003e\n\n### Examples\n\nOutput in neatly formatted columns\n```\n( printf \"UUID\\tName\\tBundleID\\tURL\\tExecPath\\n\"; login-items-dump; ) | column -s$'\\t' -t\n```\n\nTo squeeze and truncate the output so it fits better on a single line, try\n\n```\nlogin-items-dump | sed 's/\\t/  /g' | cut -c-$((COLUMNS-5))\n```\n\nTo search for Google stuff\n```\nlogin-items-dump | grep -i google\n```\n\nIf you see something you don't like, you can reset the entire BTM database (careful, you will have to reset all your startup apps) with:\n```\nsfltool resetbtm\n```\n\nFor more information about background task management, you may want to read Apple's [Manage login items and background tasks on Mac](https://support.apple.com/guide/deployment/manage-login-items-background-tasks-mac-depdca572563/web) page.\n\n### Screenshot showing a portion of the program's output\n\n\u003cimg src=image2.png width=1016\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckman212%2Flogin-items-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckman212%2Flogin-items-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckman212%2Flogin-items-dump/lists"}