The hidden command tool lsregister can be used to control LaunchServices and its registry, but there are now snags in most of its features, as explained here.
LaunchServices
Overview of how different subsystems work together during launching a notarized app, from LaunchServices to checking WritingTools and AI availability.
Get started browsing your Mac’s log using this lightweight and friendly utility. A walkthrough looking at what happened when I launched an app.
App launch security is built in multiple layers, and not all check are run on every launch of an app. Syspolicy plays a key role, CDHashes are now central, and XProtect scans can make checks on large apps slow.
Three malicious apps – Atomic Stealer, Genieo and XCSSET – against macOS 14.6.1, with full security, SIP disabled, and Gatekeeper disabled.
If you thought spctl disabled Gatekeeper assessments, and disabling SIP had little effect, then you might like to think again.
Details of security checks including Gatekeeper, XProtect and notarization, performed when launching an app in full security.
All apps now undergo Gatekeeper assessment, but only some have XProtect checks for malware, and the unfortunate few get translocated too.
Details of the chain of information, from the UTI of the file to be opened, through LaunchServices’ database of document types. How to deal with problems.
Using lsregister to clean up the Open With menu only works temporarily, and it’s populated by apps found anywhere local to your Mac. That’s not good for VMs sharing the Applications folder.
