1.创建快捷方式文件
桌面新建文本,命名为 App.desktop,设置程序名称、图标及程序路径,内容如下
[Desktop Entry]
Version=1.0
Type=Application
Name=AppName
Icon=/home/logo.png
Exec=/home//bin/App
Comment=The Drive to Develop
Terminal=true
Categories=Application;IDE;
其中Terminal选项为设置是否启用终端显示
2.添加可执行权限
sudo chmod +x App.desktop