Ubuntu实现双击执行sh脚本

1、安装 dconf-editor

sudo apt-get install dconf-editor

2、安装完成后直接输入dconf-editor打开dconf-editor

sudo dconf-editor

3、进入org->gnome->natuilus->preferences->executable-text-activation,关闭使用默认值,自定义值改为ask
image

4、对脚本加上可执行权限,双击后会出现询问窗口

posted @ 2022-05-09 11:20  KMP  阅读(930)  评论(1)    收藏  举报