The file below will execute on ubuntu 19.04 but will not execute on UB 19.04 and Nemo. It has the permissions set to execute.
I checked it with desktop-file-validate and no problems,
The problem is the Exec command. I have tried different shells and same results.
Exec=sudo sh -c “fstrim -v /; fstrim -v /home; sleep 5”