刪除 Unity Dock 中的死鏈接

刪除 Unity Dock 中的死鏈接

我已將 libre office calc 鎖定到我的啟動器底座,但當我刪除 libre office 時,圖標仍保留在底座上,現在我無法將其刪除。右鍵單擊它,我可以選擇“從啟動器解鎖”,但當我這樣做時,它仍然存在。

根據 ”這裡「我嘗試尋找 .desktop 文件,但在任何地方都找不到適用於 libre office 的文件。

關於如何刪除它的建議?

答案1

打開終端機並輸入:

gsettings get com.canonical.Unity.Launcher favorites

此命令將輸出目前啟動器中的項目,如下所示:

['ubiquity-gtkui.desktop', 'nautilus-home.desktop', 'libreoffice-calc.desktop', 'gnome-control-center.desktop']

現在,如果您想刪除libreoffice-calc,請排除它的.desktop條目並將新的收藏字串設為:

gsettings set com.canonical.Unity.Launcher favorites "['ubiquity-gtkui.desktop', 'nautilus-home.desktop', 'gnome-control-center.desktop']"

(注意分隔符號和引號。)

刪除.desktop正在/usr/share/applications使用的檔案:

sudo rm /usr/share/applications/libreoffice-calc.desktop

相關內容