我遇到的问题是已经赋执行权限,在桌面上的sh文件可以双击打开,但在文件夹里的sh文件双击会用text editor打开,右键也没有execute的选项,经过google,发现要设置一下
首先确定已经给文件赋执行权限:
chmod +x file.sh
以下是解决方法,二选一即可
1、If you're using XFce then you can make script executed in Thunar by executing this command:
xfconf-query --channel thunar --property /misc-exec-shell-scripts-by-default \
--create --type bool --set true
2、or by using gui xfce4-settings-editor
and creating the same properties.
Run xfce4-settings-editor
, then enter:
-
/misc-exec-shell-scripts-by-default
-
Boolean
-
TRUE