删除launchpad多余的图标记录
launchpad是存储在sqlite3的database里,所以可以直接对database里的表进行操作。
首先要找到db文件的位置。
Navigate to /private/var/folders/
In it will be several folders with two-character names. In each one, a folder with an long and obscure name will be present. Open it. Some will be empty or will contain folders you can’t open. Open the folders you can open. Within one of them, there will be a folder named com.apple.dock.launchpad containing a folder named db. It contains the Launchpad data you seek.
进去/private/var/folders目录,寻找一个com.apple.dock.launchpad
的文件夹。进去里面的db文件夹,对db文件进行操作。
sqlite3 db
select * from apps
对需要的文件进行删除就行了,之后要刷新launchpad。没有去查,直接重启了。