Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Ubuntu 編輯應用程式選單:alacarte 工具與 .desktop 檔案手動管理

編輯:關於 Linux

Ubuntu 編輯啟動選單有兩種方式:圖形化工具與手動管理 .desktop 檔案。

方法一:alacarte(圖形化)

終端執行 alacarte,可增刪改查選單項目,但無法刪除系統內建選單(即使 root)。

方法二:手動管理 .desktop 檔案

關鍵路徑:

  • /usr/share/applications/:系統級選單項目
  • ~/.local/share/applications/:用戶級選單項目(優先級較高)
  • ~/.local/share/applications/default.list:用戶檔案關聯
  • /etc/gnome/defaults.list:系統檔案關聯
  • mimeinfo.cache:關聯快取

新增選單項目範例

  1. 複製 /usr/share/applications/ 任一 .desktop 檔案為範本。
  2. 修改 Name、Exec、Icon、Categories(如 Development; 歸類至「程式設計」)。
  3. 存放至 ~/.local/share/applications/ 即可生效。

KDE/GNOME 均遵循 Desktop Entry Specification,跨桌面環境相容。

Copyright © Windows教程網 All Rights Reserved