Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

Thanks.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You could try this Exec line for your .desktop file:

Exec= bash -c ". /opt/feko/6.3/bin/initfeko && cadfeko"

bash will open a shell and correctly interpret the &&.

share|improve this answer
    
TX for the comment. This wasn't working last week. I tried again now and works fine. TX again :) –  antmw1361 Apr 29 at 11:23

Use this command:

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

adding '&' at the end will let it run in the background the terminal auto hides

I hope that works

share|improve this answer
    
Thanks, This works fine in terminal, but I had no luck with launcher so far :( –  antmw1361 Apr 24 at 9:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.