南通网站建设报价,c 做网站流程,网店排行榜前十名,黄做网站方法1: 修改文件双击反应
参考: https://blog.csdn.net/miffywm/article/details/103382405
chmod x test.sh鼠标选中待执行文件#xff0c;在窗口左上角edit菜单中选择preference设计双击执行快捷键#xff0c;如下图#xff1a; 方法2: 设置一个应用
参考: https://blo…方法1: 修改文件双击反应
参考: https://blog.csdn.net/miffywm/article/details/103382405
chmod x test.sh鼠标选中待执行文件在窗口左上角edit菜单中选择preference设计双击执行快捷键如下图 方法2: 设置一个应用
参考: https://blog.csdn.net/DBaiYun/article/details/130291877 准备两个文件:
需要执行的shell文件: test.sh应用文件: test.desktop
test.desktop内容如下:
[Desktop Entry]
Version1.0
#展示的应用名称
Nametest
Commenttest
#下面是调用shell脚本、并添加执行脚本的路径
Execgnome-terminal -e bash -c ~/Downloads/test.sh;$SHELL
Terminalfalse
X-MultipleArgsfalse
TypeApplication
#下面是桌面是logo绝对路径
# Icon/home/upload/icon.ico
StartupNotifytrue双击test应用即可: