How can I open two Ptyxis terminals when logging in? The solution to gnome terminal doesn’t work. How to open two gnome-terminials when logging in - #12
I believe you’ll want to use --new-window.
You should be able to check with man ptyxis
I would like the two terminals to be startup applications (started automatically when I log in). I can use gnome tweaks to add one terminal as startup application but can only add one.
You may specify the command
sh -c "ptyxis && ptyxis --new-window"
in the autostart .desktop launcher.
The autostart ‘org.gnome.Ptyxis.desktop’ is as follows. How can I specify the command you suggested?
[Desktop Entry]
Name[en_GB]=Terminal
Name[eu]=Terminala
Name[fi]=Pääte
Name[he]=מסוף
Name[hi]=टर्मिनल
Name[it]=Terminale
Name[ja]=ターミナル
Name[nl]=Terminal
Name[pt_BR]=Terminal
Name[ru]=Терминал
Name[sl]=Terminal
Name[sv]=Terminal
Name[tr]=Uçbirim
Name[uk]=Термінал
Name=Terminal
Comment[en_GB]=A container-oriented terminal for GNOME
Comment[eu]=Edukiontziekin erabiltzeko terminala GNOMErako
Comment[fi]=Konttisuuntautunut pääte Gnomelle
Comment[hi]=गनोम के लिए एक कंटेनर-उन्मुख टर्मिनल
Comment[it]=Un terminale per GNOME rivolto ai container
Comment[ja]=コンテナ志向の GNOME 向けターミナル
Comment[nl]=Een op containers gefocuste terminal voor GNOME
Comment[pt_BR]=Um terminal orientado a contêineres para GNOME
Comment[ru]=Терминал ориентированный на контейнеры для GNOME
Comment[sl]=Zabojnikom posvečen terminal za GNOME
Comment[sv]=En behållarorienterad terminal för GNOME
Comment[tr]=GNOME için konteyner odaklı uçbirim
Comment[uk]=Орієнтований на контейнери термінал для GNOME
Comment=A container-oriented terminal for GNOME
Exec=ptyxis
Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Ptyxis
DBusActivatable=true
StartupNotify=true
Terminal=false
Type=Application
Categories=GNOME;GTK;System;TerminalEmulator;
GenericName[en_GB]=Terminal
GenericName[eu]=Terminala
GenericName[fi]=Pääte
GenericName[he]=מסוף
GenericName[hi]=टर्मिनल
GenericName[it]=Terminale
GenericName[ja]=ターミナル
GenericName[nl]=Terminal
GenericName[pt_BR]=Terminal
GenericName[ru]=Терминал
GenericName[sl]=Terminal
GenericName[sv]=Terminal
GenericName[tr]=Uçbirim
GenericName[uk]=Термінал
GenericName=Terminal
Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords[eu]=terminala;gonbita;ptyxis;shell-a;komandoa;komando-lerroa;cmd;cli;edukiontzia;podman;tresna-kutxa;distrobox;
Keywords[hi]=टर्मिनल;प्रॉम्प्ट;ptyxis;शैल;कमांड;कमांडलाइन;cmd;cli;कंटेनर;पॉडमैन;टूलबॉक्स;डिस्ट्रोबॉक्स;
Keywords[ru]=terminal;prompt;ptyxis;shell;command;commandline;cmd;cli;container;podman;toolbox;distrobox;
Keywords[sl]=terminal;utripalka;ptiksa;ptysis;lupina;ukaz;ukazna;vrstica;cmd;cli;vsebnik;zabojnik;kontejner;podman;orodje;toolbox;distrobox;
Keywords[sv]=terminal;prompt;ptyxis;skal;ptyxis;kommando;kommandorad;cmd;cli;behållare;podman;toolbox;distrobox;
Keywords[tr]=terminal;prompt;ptyxis;shell;command;commandline;cmd;cli;container;podman;toolbox;distrobox;uçbirim;uç birim;istem;kabuk;komut;komut satırı;konteyner;
Keywords[uk]=terminal;prompt;ptyxis;shell;command;commandline;cmd;cli;container;podman;toolbox;distrobox;термінал;запит;птиксіс;команда;рядок;клі;контейнер;подмен;тулбокс;дістробокс;
Keywords=terminal;prompt;ptyxis;shell;command;commandline;cmd;cli;container;podman;toolbox;distrobox;
Actions=new-window;new-tab;preferences;
X-ExecArg=–
X-KDE-AuthorizeAction=shell_access
[Desktop Action new-window]
Name[en_GB]=New Window
Name[eu]=Leiho berria
Name[fi]=Uusi ikkuna
Name[he]=חלון חדש
Name[hi]=नई विंडो
Name[it]=Nuova finestra
Name[ja]=新しいウィンドウ
Name[nl]=Nieuw venster
Name[pt_BR]=Nova janela
Name[ru]=Новое окно
Name[sl]=Novo okno
Name[sv]=Nytt fönster
Name[tr]=Yeni Pencere
Name[uk]=Нове вікно
Name=New Window
Exec=ptyxis --new-window
[Desktop Action new-tab]
Name[en_GB]=New Tab
Name[eu]=Fitxa berria
Name[fi]=Uusi välilehti
Name[he]=לשונית חדשה
Name[hi]=नया टैब
Name[it]=Nuova scheda
Name[ja]=新しいタブ
Name[nl]=Nieuw tabblad
Name[pt_BR]=Nova aba
Name[ru]=Новая вкладка
Name[sl]=Nov zavihek
Name[sv]=Ny flik
Name[tr]=Yeni Sekme
Name[uk]=Нова вкладка
Name=New Tab
Exec=ptyxis --tab
[Desktop Action preferences]
Name[en_GB]=Preferences
Name[eu]=Hobespenak
Name[fi]=Asetukset
Name[he]=העדפות
Name[hi]=प्राथमिकताएं
Name[it]=Preferenze
Name[ja]=設定
Name[nl]=Voorkeuren
Name[pt_BR]=Preferências
Name[ru]=Параметры
Name[sl]=Nastavitve
Name[sv]=Inställningar
Name[tr]=Tercihler
Name[uk]=Налаштування
Name=Preferences
Exec=ptyxis --preferences
mkdir -p -Z ~/.config/autostart
for I in $(seq 2)
do tee ~/.config/autostart/ptyxis-${I}.desktop << EOF > /dev/null
[Desktop Entry]
Type=Application
Exec=ptyxis --new-window
EOF
done
That command is to be specified on the Exec=
line in the [Desktop Entry]
section of the copy of the launcher in ~/.config/autostart
.
An alternative method is to work with two different launchers, each calling ptyxis with the --new-window
option, like Vladislav Grigoryev suggested.
Yes, that works. Thank you very much!
Yes, I got what I wanted. Thank you very much!