I have some shell scripts (files *.sh) on my Ubuntu desktop, eg. startdoublecmd.sh or startlazarus.sh.
When using Ubuntu 20, those scripts started automatically upon double clicking on them. Now I upgraded to Ubuntu 22 and the scripts open in a text editor instead, and to run them I have to right click and select Run as Program from context menu.
I did not change any configuration, I just upgraded to 22 LTS. How to restore the Ubuntu 20 behavior on Ubuntu 22?