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?
I know this may be old but it might help someone.
Simply create a .desktop file with the following content
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).
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.