ubuntu12.04 Dash home增添eclipse程序啓動器

ubuntu12.04 Dash home添加eclipse程序啓動器

ubuntu12.04 dash home中每個圖標對應/usr/share/applications當中的一個配置文件(文件名後綴爲.desktop)。所以要在dash home中添加一個自定義程序啓動器,需要在該文件目錄下創建對應的配置文件。至於配置文件的語法,參考該目錄下的配置文件即可明白。

 
以eclipse爲例,方法如下。
系統:ubuntu12.04 beta2 i386
方法:
1. 在/usr/share/applications目錄下創建eclipse啓動器配置文件
 
cd /usr/share/applications
sudo gedit eclipse.desktop
2. 編輯eclipse.desktop並保存。簡單的配置示例:
 
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[zh_CN]=/home/xxx/Software/eclipse/icon.xpm
Name[zh_CN]=Eclipse
Exec=/home/xx/Software/eclipse/eclipse
Comment[zh_CN]=Eclipse
Name=Eclipse
Comment=Eclipse
Icon=/home/xxx/Software/eclipse/icon.xpm
 
這樣eclipse啓動器就添加到dash home中了.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章