Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 874  / 2 Years ago, sun, january 23, 2022, 10:41:21

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.


More From » unity

 Answers
6

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 &&.


[#25727] Monday, January 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
cisccla questions
Tue, Nov 16, 21, 08:40, 3 Years ago
Thu, Sep 1, 22, 19:53, 2 Years ago
Fri, Apr 21, 23, 20:17, 1 Year ago
Thu, Dec 2, 21, 15:29, 3 Years ago
;