Not runnig .sh file using GUI

any time i click on a .sh file the little gui asking you for “run, edit, cancel” do not appear, but using terminal
(sh filename.sh) work just fine.
how can i fix this issue?
thanks

The file permissions determine whether caja presents you with the "run, edit, cancel" dialog for a file.

If the execute bit is set,

you will get the "run, edit, cancel" dialog:

If the execute bit is not set, caja will open the file in your default editor.

2 Likes

it just uncheck it self

I also tried to do (chmod + x filename.sh)

Is filename.sh by chance on NTFS or cifs/smb mounted? I’ve seen “unchecks itself” in this case.

It should be, chmod u+x filename.sh (note, no space after + and x)

1 Like

i automount the drive on boot usig
UID=F61A60341A5FEFDB /media/leonardo/TUTTECOSE ntfs uid=1000,gid=1000,dmask=027,fmask=137,windows_names 0 2

the broblem to have begun to be seen since using fstab to automount the drive

Your fmask won’t get the execute permission for files. NTFS has no execute permission so it’s forced on for every file just in case you need it, which can be a double-edged sword because opening some non-executable files can have some silliness.

fmask=027 should get what you want, same as dmask in your case. Does it now work? I invite other suggestions, anyone?

ok is working again
thanks you!

Great! It’s been a while since I mounted NTFS but x resetting itself brought back memories. Good luck and please mark the solution. Thanks!