LINUX下給軟件建立桌面圖標

轉自:http://www.cnblogs.com/Rapheal/p/3610411.html?utm_source=tuicool&utm_medium=referralhtml

 

最近在折騰linux,咱們日常往linux下安裝的軟件都只能在解包的文件夾裏打開,怎樣才能像Windows那樣在桌面建立圖標呢?linux

下面以我安裝的eclipse爲例子:vim

首先,咱們打開終端。。。。。。。。。。。。。app

 

vim /usr/share/applications/eclipse.desktopeclipse

如下是內容:ui

[Desktop Entry]htm

Encoding=UTF-8blog

Name=eclipseip

Comment=Eclipse IDEio

Exec=/usr/local/eclipse/eclipse

Icon=/usr/local/eclipse/icon.xpm

Terminal=false

StartupNotify=true

Type=Application

Categories=Application;Development;

 

保存就能夠了。

這樣在你的桌面(固然看你什麼系統,我用的是CentOS)的Applications--->Programming--->eclipse  就出現啦。

 

注意:必須在root權限下才能保存這個desktop文件,su命令你懂的。

相關文章
相關標籤/搜索