익명 11:09

Ask Ctrl+Alt+T to open Ptyxis instead of gnome-terminal

Ask Ctrl+Alt+T to open Ptyxis instead of gnome-terminal

I have the new Terminal by Ptyxis and the old gnome-terminal both in my Ubuntu 26.04. When I push Ctrl+Alt+T the old gnome-terminal appears. How to switch to modern Terminal by Ptyxis? I can call Terminal by Ptyxis manually, but I want to use Ctrl+Alt+T, and I don't want to remove gnome-terminal.

I have tried this without success:

$ sudo update-alternatives --config x-terminal-emulator
[sudo: authenticate] Password:  
There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/ptyxis                   40        auto mode
  1            /usr/bin/gnome-terminal.wrapper   40        manual mode
  2            /usr/bin/ptyxis                   40        manual mode

Press <enter> to keep the current choice[*], or type selection number:

Then pressed enter key. But Ctrl+Alt+T still calls old gnome-terminal.



Top Answer/Comment:

You ran update-alternatives as root, this wouldn't affect the GUI stuff you see in your graphical environment. I don't have access to a Gnome system at the moment but there should be an option for "preferred applications" or similar in the settings.

So open the system settings and look for something like that. On my Cinnamon system, which is usually similar to Gnome, it is here:

screenshot of Cinnamon settings with the relevant option indicated

If for some reason you cannot find it, it should also be possible to set this on the command line using gsettings, or alternatively by editing the ~/.config/ubuntu-xdg-terminals.list file (see here). If I understand those instructions correctly, you need to edit (or create, if it doesn't exist) ~/.config/ubuntu-xdg-terminals.list and add this line, replacing anything already in the file if it was not empty or absent:

org.gnome.Ptyxis.desktop:new-window
상단 광고의 [X] 버튼을 누르면 내용이 보입니다