ubuntu 創建快捷方式


  • 首先輸入指令: cd /usr/share/applications
  • 然后輸入指令: sudo gedit xxx.desktop
  • 將下面的代碼復制到文件中:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Eclipse
    Comment=Eclipse
    Exec=/opt/eclipse-installer/eclipse-inst
    Icon=/opt/eclipse-installer/icon.xpm
    Terminal=false
    StartupNotify=true
    Type=Application
    Categories=Application;Development;
    其中“Exec=”后面為eclipse安裝目錄下的eclipse程序的位置路徑,“Icon=”后面為eclipse安裝目錄下的圖標圖片的路徑
  • 將eclipse變為可執行文件的指令為:sudo chmod u+x xxx.desktop
  • 從/usr/share/applications目錄下將Eclipse圖標復制到桌面


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM