I would need to add a new entry in the applications menu related to a command to be executed in the terminal and I tried to use this expression in the .desktop file:
Exec=pantheon-terminal -e "bash -c 'cd /opt/FlexServer; sudo ./lmgrd -c /opt/FlexServer/safe.lic; $SHELL'"
but it does not work in Elementary while a similar expression using gnome-terminal works in Ubuntu 18.04.
I tried to use the AppEditor utility too but without success.
How can I solve this problem?