1. 程式人生 > >ubuntu 軟件桌面圖標創建

ubuntu 軟件桌面圖標創建

tex 安裝目錄 name 目錄 創建 entry exe type app

sublime text 的安裝目錄是:/usr/local/sublimetext
$cd 桌面
$vim Sublime\ Text.desktop
添加如下內容:
[Desktop Entry]
Version=1.0
Type=Application
Icon[zh_CN]=/usr/local/sublimetext/Icon/32×32/sublime_text.png
Name[zh_cn]=Sublime Text 2
Exec=/usr/local/sublimetext/sublime_text
Icon=/usr/local/sublimetext/Icon/32×32/sublime_text.png
Name[en_US]=Sublime Text

修改 Sublime Text.desktop 的權限
$chmod 755 Sublime\ Text.desktop

ubuntu 軟件桌面圖標創建