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?
elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up.Sign up to join this community
[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=sudo chmod a+x %f Terminal=true