Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

When I click on an executable file in PCManFM (default file manager in Lubuntu), I get an “Execute File” dialog with three options (Execute, Execute in terminal, Cancel). Is there a way to set default action (e.g. Execute) in order to skip annoying “Execute File” dialog?

share|improve this question

2 Answers 2

I know this may be old but it might help someone.

Simply create a .desktop file with the following content

[Desktop Entry]
Type=Application
Icon=path/icon.png
Name=Name
Comment=Description       
Categories=Applications
Exec=/path/to/yout/exec
StartupNotify=true
Terminal=false

Save it like myexec.desktop And you are good to go.

It worked for me and i found that is a better way that changing the default behavior of the file manager (plus i never found the way everywhere i read was only about nautilus).

share|improve this answer
    
This is not exactly the answer to question how to avoid this dialog altogether for all executables. So I +1 it, but not mark as an answer hoping that someone some day supply the exact answer. –  Artem Pelenitsyn Aug 9 at 9:53

As a workaround, if you have the interesting file selected, pressing twice Space or Enter key will run it as you wish, as Execute is the default button, for the default action.

It is may be not a good idea to set Execute as default (by default :) as sometimes you may want to 'Execute in terminal', or simply 'Cancel' if you clicked an executable you just unzipped from the Internet by mistake.

share|improve this answer

Your Answer

 
discard

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.