2

I know this can be done under the file's Properties or with the command sudo chmod a+x.

But how to add it to context menu?

2
gedit ~/.local/share/contractor/make_executable.contract

with

[Contractor Entry]
Name=Make executable
MimeType=text/plain
Exec=pantheon-terminal -e 'sudo chmod a+x %f'

This form also works:

[Contractor Entry]
Name=Make executable
MimeType=text/plain
Exec=pkexec chmod a+x %f
Terminal=true
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy