I already installed a program called CadFeko, and I can run it from terminal. To run the program, first I have to run this command

. /opt/feko/6.3/bin/initfeko

Then I can call the program by

cadfeko

This doesn't release the terminal. Also, if I close the program and terminal I have to run the initfeko again.

I tried to create a shortcut launcher for this program. I cannot figure it out, how can I use combination of these two commands on the same line. I already tried something like this in my .desktop file:

Exec= . /opt/feko/6.3/bin/initfeko && cadfeko

but this is not working for me. Please let me know if there is a solution for this.