I have a .desktop file like this that I've used to distribute an internal tool to non-technical people to install on my ubuntu systems. The tool is delivered on CD/DVD. On 18.04, they'd insert the CD/DVD, double click the launcher icon, and the installer scripts would be launched (which then installs the tool).
I can't get this to work on 22.04. After mounting the media, instead of a "launcher" icon appearing in nautulus ("Files"), I see the mytool.desktop file. Double-clicking that opens the .desktop file in a text editor.
The .desktop file as 555 permissions, and if I right-click to look at properties, the "Allow executing file as a program" box is checked.
Is this use case no longer supported? Is there something else I'm missing? I've seen the posts suggesting moving the desktop file to specific folders on the filesystem, but my use case is to give users an easy way to launch an installer.
Here a very slightly sanitized version of my .desktop file.
desktop-file-validate reports no errors.
[Desktop Entry] Version=1.4 Name=Launch My Tool Comment=Launch My Tool Exec="/bin/sh -c /path/to/file/on/disk.sh" Terminal=false Type=Application Icon=application-x-executable