Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I know this can be done under the file's Properties or with the command sudo chmod a+x.
sudo chmod a+x
But how to add it to context menu?
Exec=pantheon-terminal -e 'sudo chmod a+x %f'
This form also works:
Exec=sudo chmod a+x %f
Required, but never shown