1. 程式人生 > >刪除launchpad多餘的圖示記錄

刪除launchpad多餘的圖示記錄

刪除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。沒有去查,直接重啟了。