1,创建程序启动脚本:touch run.sh
#!/bin/bash
cd /execute程序路径/
./myapp
2,创建desktop文件:touch myapp.desktop
[Desktop Entry]
Type=Application
Exec=/路径/run.sh
Name=myapp
GenericName=myapp
Icon=图标路径
Terminal=false
Categories=Development;
3,修改权限
chmod +x run.sh
chmod +x myapp
chmod +x myapp.desktop
4,双击myapp.desktop启动程序