No need to use a separate script to run four terminal windows on Startup
You do not need a separate script to open four
gnome-terminal windows, you can simply combine them into one command, to be added to Startup Applications.
How to use complex commands in a .desktop file
When you add a command to Startup Applications, it actually creates a
.desktop file in
~/.config/autostart, that runs your command on startup (actually log in). The syntax for complex commands to be used in a
.desktop file is as follows:
/bin/bash -c "<complicated_command>"
However: You only need to use the
/bin/bash -c a single time, so the complete command should look like:
/bin/bash -c "gnome-terminal&gnome-terminal&gnome-terminal&gnome-terminal"
Doing so, you do not need a separate script to do the job.
Like already mentioned, you should chain the commands with a
&, not with
If a command is terminated by the control operator &, the shell executes the command in the background in a subshell. The shell does not wait for the command to finish, and the return status is 0. Commands separated by a ; are executed sequentially; the shell waits for each command to terminate in turn. The return status is the exit status of the last command executed.