= 2021-06-15 = == macOS Spotlight == * [緣起] 想要釋放出一些記憶體,其次因為預計產生大量資料,想避免 Spotlight 對大量檔案做索引 Indexing * https://apple.stackexchange.com/questions/388882/how-to-disable-spotlight-and-mds-stores-on-mac-os-catalina {{{ sudo mdutil -a -i off }}} * https://www.technipages.com/macos-sierra-enable-disable-spotlight {{{ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist }}} * 副作用:後來發現影響是 Finder 沒辦法正常找到檔案,Spotlight 快速鍵也找不到 Application 了 * 試了幾種方法都不管用 * https://blog.pcrisk.com/mac/12708-spotlight-search-not-working-on-mac-how-to-fix#kill-systemuiserver * https://apple.stackexchange.com/questions/368054/spotlight-doesnt-show-applications * https://apple.stackexchange.com/questions/337706/spotlight-re-indexing-takes-too-long-or-doesnt-work * 檢測工具 * https://www.titanium-software.fr/en/applications.html * https://etrecheck.com/features == macOS launchctl == * [緣起] 如何從 `launchctl list` 結果反查 plist 位置? {{{ jazzwang:~$ launchctl list | grep -i spot - 0 com.apple.corespotlightservice 477 0 com.apple.corespotlightd 396 0 com.apple.Spotlight ~$ sudo launchctl procinfo 396 | grep plist path = /System/Library/LaunchAgents/com.apple.Spotlight.plist }}}