Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Nautilus and Thunar have a such context menu option under Properties/Permissions, but not PCManFM, Lubuntu's default file and desktop manager (at least not yet in the present v. 1.1.).

But under "Open with"/(again)"Open with"/"Custom command line", it is possible to add new custom commands.

enter image description here

enter image description here

This creates a file with extension .desktop in ~/.local/share/applications which can be edited further so as to get a proper name and icon.

What is the command to add in this way for making a file executable?

That is: how to use sudo chmod +x filename to make it work in this way?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The command sudo chmod +x must run in a terminal.

So, the command to add is something like:

gnome-terminal -e "sudo chmod +x %f" 

After editing the file in ~/.local/share/applications, the context menu looks like this:

enter image description here

(The terminal use was inspired by this answer.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.