How to open two gnome-terminials when logging in

How to automatically open two gnome-terminals when logging in. The gnome-tweak allows only one.

How are you doing it in gnome-tweaks? You should be able to use the --window option to start a new window too. Try gnome-terminal --help-all

1 Like

Aren’t Gnome has some autostart settings outside of the Tweaks?

1 Like

That’s the only GUI I’m aware of. Gnome follows the xdg-autostart spec: Desktop Application Autostart Specification

(the general autostart bits are a different question that should be discussed in a different topic)

1 Like

I use ‘Startup Applications’ in gnome-tweaks to add/set an application to be automatically started. But I can set only one terminal in gnome-tweaks. Of course, once the terminal is popped up at startup, I can right-click in the terminal and open a new terminal.

That’s what I’m interested in.

So, all tweak-tools does is place a new file for you in ~/.config/autostart. If you go there now, you’ll see that it added an org.gnome.Terminal.desktop file. The tweak tool lets you autostart an application, not a session, which is why you can select each application once.

If you want to start multiple windows of gnome-terminal, copy the current file to a new one in ~/.config/autostart and in the Exec= line, add --window at the end of the command. The teak tool will then show you two terminals in the list.

I can’t log out and back in to test, but this should work. I had a script that I would run on login to start lots of non-GUI apps and it ran just fine.


I noticed that file and tried to edit it but did not get what I wanted. If I copy that file to a new one. How shall I name the new file?

org.gnome.Terminal1.desktop? Experiment, see what happens :wink:


It works! Thank you very much!


4 posts were split to a new topic: How do I specify window geometry when autostarting gnome-terminal?

Great, please mark the answer as the solution for the benefit of others. I’ve split your new question into a new topic.

(Please take a look at the introductory posts in #start-here if you’ve not had a chance to do so yet. )


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.