Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to start 2 applications with one shortcut.
One application is GUI based while other is shell based (Terminal=true in .desktop file).

What I have tried:

For this goal, I created a file name **Starter** having following script in this file

./ShellApplication & ./GuiApplication


while .desktop file contains this setting

[Desktop Entry]
    Version=1.0
    Name[en_US]=MyApps.desktop
    GenericName[en_US]=MyApps
    Comment[en_US]=FRT MyApps
    Exec=/usr/share/MyApps/Starter
    Path=/usr/share/MyApps
    Icon=/usr/share/MyApps/MyApps.png
    Terminal=true
    Type=Application
    Categories=Application

When I click on this shortcut file then nothing happens.

**I also have tried this option 2 by changing in .desktop file:**

Exec=/usr/share/MyApps/ShellApplication & /usr/share/MyApps/GuiApplication

With option 2, Only ShellApplication starts.

What is I am doing wrong ?
Posted
Comments
Richard MacCutchan 12-Feb-22 5:11am    
I do not think you can do that in the shell, as the commands are executed in sequence. You most likely need another executable that starts the two programs via exec or system.
DoingWork 14-Feb-22 7:18am    
Yes. I have done through another projection creation. Thanks for your reply

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900