若是是系統自帶的程序,默認的桌面圖標放在 /usr/share/applications/下面,能夠直接將對應的圖標放到當前用戶的~/Desktop/目錄下便可app
若是是從網上下載已編譯的二進制文件(eclipse之類的),能夠進行手動的建立eclipse
將如下代碼放在一個sublime.desktop的文件中,並複製到桌面上,授予可執行權限便可:spa
[Desktop Entry] Categories=Development; Comment[zh_CN]= Comment= Exec=/home/zhxia84/software/tool/SublimeText2/sublime_text GenericName[zh_CN]=IDE GenericName=IDE Icon=/home/zhxia84/software/tool/SublimeText2/Icon/32x32/sublime_text.png MimeType= Name[zh_CN]=sublime Name=sublime Path= StartupNotify=true Terminal=false Type=Application X-DBUS-ServiceName= X-DBUS-StartupType= X-KDE-SubstituteUID=false X-KDE-Username=owen