Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 5709  / 1 Year ago, sat, november 26, 2022, 12:12:46

Lets suppose that there are two binary files, e.g. XXX and YYY, at destination /usr/bin/. I want to start them at once, always! In other words, when I type the name of either of those in unity, I want to make both of them start. How could I change the corresponding files at destination /home/username/.local/applications/ to do so? I tried this /usr/bin/XXX;/usr/bin/YYY; on terminal but it doesn't seem to work.


More From » launcher

 Answers
3

As I understand you need to edit your .desktop file. Add this line next to Exec:



sh -c "/usr/bin/XXX & /usr/bin/YYY"



The -c flag tells to the shell that it has to read the commands from string, instead of from the standard input.






If you use only /usr/bin/XXX & /usr/bin/YYY it won't work. Just to add the reason why & doesn't work in a launcher, it's because & is a feature of the shell, and the launcher isn't a shell, its a much simpler environment for running commands.


[#32453] Monday, November 28, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odenanno

Total Points: 207
Total Questions: 113
Total Answers: 94

Location: South Korea
Member since Sat, Oct 2, 2021
3 Years ago
;