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