我发现qt文件生成后只是一个执行文件,需要在终端中./xxx打开,这样太麻烦了, 就像添加一个执行文件的快捷方式。 但是搜索到的方式都是Desktop.desktop
Comment=test process
Name[zh_CN]=test
StartupNotify=false
Terminal=false
Type=Application
Categories=Network;RemoteControl;
Exec=/home/start/Desktop/Debug/run.sh
Icon=/home/start/Desktop/Debug/test.ico
Name=test
而run文件都是这样 run.sh
有些复杂的执行文件需要添加环境 所以我这里有添加环境的shell启动方法 download.csdn.net/download/zl… 自己下载