Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
desktop文件中调用shell脚本
Experiences and Insight
590
views ·
0
replies ·
To
floor
Go
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
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
如果将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有什么限制?