I created a desktop application with pyinstaller. When I double-click on the icon, Ubuntu says:

Can't open the file
Failed to find default application for content type 'application.x-executable'

I *can* run it by right-clicking and choosing "Run as a program".

How can I get double-clicking to launch it?

(Yes, I already set it to be executable from the command line.)

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.social/users/peterdrake/statuses/115861602507620599 on your instance and quote it. (Note that quoting is not supported in Mastodon.)