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?

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.