在Linux(Luna)下向Launch啓動器中添加圖標

記錄下在Luna下向Launch中添加圖標的步驟,以供之後參考,這裏我以加入eclipse圖標爲例:eclipse

  1. 首先,咱們來建立一個desktop文件(Luna中到啓動器Launch能夠看做是Ubuntu中到桌面)
    $ scratch-text-editor eclipse.desktop
  2. 將如下代碼寫入文件
    [Desktop Entry]
    Name=Eclipse 
    Type=Application
    Exec=eclipse
    Terminal=false
    Icon=eclipse
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE;
    Name[en]=Eclipse
  3. 而後使用如下命令讓文件生效
    desktop-file-install eclipse.desktop
  4. 而後/usr/local/bin目錄下生成一個系統連接
    cd /usr/local/bin
    ln -s /opt/eclipse/eclipse  
  5.  最後,往啓動器裏添加eclipse圖標spa

    cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm
相關文章
相關標籤/搜索