I'm trying to run an executable (testdisk) but double click doesn't work. The only way is to run:
from terminal. But I'd like to open executables with double click in future. How can I do this?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
To run an application by double clicking it's icon we have to define a
.desktop file stored in the location from where we want to start it (e.g. on the
The minimal content of such a file may be similar to the following:
[Desktop Entry] Type=Application Exec=/path/to/executable --options # commands to run Icon=/path/to/icon # optional path to the icon Terminal=false # set `true' for terminal applications
Save this file on the desired location and give it
Side note: it is not really a good idea to run your example application Testdisk by a double click from the GUI.