我试图运行一个脚本,但是laucher显示启动应用程序时出错了。
[Desktop Entry]
Name=UGS Platform
Comment=UGS Platform is the next generation of Universal Gcode Sender.
GenericName=UGS Platform
Exec=~/Desktop/2Dplotter/ugs/ugs-platform-app-linux/ugsplatform-linux/bin$ ./ugsplatform
Type=Application
Icon=""
Categories=GNOME;GTK;Utility;发布于 2022-06-05 20:13:41
~由shell展开,成为主目录(即/home/<yourlogin> )的完整路径。在.desktop启动程序中,这种扩展不起作用。解决方案:将行~中的Exec=替换为主目录的完整路径,例如,假设用户名为bens,/home/bens/Desktop/。/home/bens/Desktop/2Dplotter/ugs/ugs-platform-app-linux/ugsplatform-linux/bin,然后以./ugsplatform的形式执行程序。尝试输入到可执行./ugsplatform的正确路径。最后一个Exec=行变成:
Exec=/home/bens/Desktop/2Dplotter/ugs/ugs-platform-app-linux/ugsplatform-linux/bin/ugsplatformhttps://askubuntu.com/questions/1412101
复制相似问题