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?
4 Answers
Open PCManFM, Go to Edit/Preferences/General, Check box for "Don't ask options on launch executable file"
- 146
- 1
- 2
-
Awesome, thanks!, this is the correct answer :-) – ArianJM Sep 22 '17 at 11:50
-
It worked for me. Don't forget restart for changes to take effect – Emiliano Sangoi Dec 05 '18 at 05:06
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).
- 141
- 3
-
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 09 '15 at 09:53
To disable this annoying dialog from command line:
set quick_exec=1 in ~/.config/libfm/libfm.conf
This is equivalent to james' answer. I'm doing this for my VNC docker image.
- 363
- 3
- 8
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.
- 11
- 1