在sh文件同目录新建文件 [project_name].desktop
大致内容如下:
[Desktop Entry]
Encoding=UTF-8
Name=MTZN
Exec=sh /home/test/test_ws/start.sh
Terminal=true
Type=Application
StartupNotify=true
然后将文件复制到 /usr/share/applications
sudo cp -i /home/test/test_ws/[project_name].desktop /usr/share/applications
然后在应用程序列表中将程序添加到收藏夹即可