But when I tested it, only Thunderbird launches, and I am not sure where the error is. All 3 lines work individually in a terminal, so I conclude maybe it's the ampersand or something else with the syntax?Launch multiple programs with a single click
1. Create a new script listing the items that you want to launch, following this example:
Be sure that the paths and names are correct. Save it somewhere in your Home directory, and give it a name. Let's suppose you name it "LaunchAll.sh" and place it in ~/Home/Scripts. Right-click it > Properties, Permissions tab, and check the box to allow it to run as a program.
Code: Select all
#!/bin/bash /opt/firefox/firefox & /usr/bin/Thunar & /usr/bin/thunderbird & exit 0
2. Right-click the panel > Panel > Add New Items... > Launcher, click Add; then right-click the new icon > Properties and click the Add a new empty item icon. Alternatively, on the desktop > Create Launcher. Either way, you will end up looking at the launcher's dialog box. Give the launcher a name such as LaunchAll, and then click on the little square to the right of the Command line to navigate to your script.
That's it: now when you click that icon, all the programs you listed in your script will launch.
Thanks for any help.