Mac删除残留图标

1:查找com.apple.dock.launchpad目录

sudo find /private/var/folders -name 'com.apple.dock.launchpad'
结果:/private/var/folders/qt/hv92qxd55k39x57gmtkrdl6m0000gn/0/com.apple.dock.launchpad

2:跳转到db目录,删除

# 跳转
cd /private/var/folders/qt/hv92qxd55k39x57gmtkrdl6m0000gn/0/com.apple.dock.launchpad/db
# 删除
sqlite3 db "delete from apps where title='删除图标的名字';" && killall Dock

你可能感兴趣的:(Mac删除残留图标)