desktop文件中调用shell脚本
Tofloor
poster avatar
refreever
deepin
2020-06-16 22:02
Author
deepin系统中在desktop中调用shell脚本, shell脚本中sudo Caller启动一个进程,双击desktop文件没反应。
如果将Exec文件路径改为/opt/Call/Caller,则可以正常启动, 单独运行init.sh Init也可正常启动.


desktop文件如下:
[Desktop Entry]
Name=工具
Comment=管理工具
Exec=/opt/Call/init.sh Init
Icon=/opt/Caller/res/Caller-Init.png
Type=Application
Categories=System;Application;X-Fedora;
Terminal=false


在其他的几个系统中都是可正常运行的,是否deepin有什么限制?
Reply Favorite View the author
All Replies

No replies yet