In Ubuntu 25.04 the terminal program GNOME uses is (mostly) controlled by the xdg-terminal-exec program and the configuration of xdg-terminal-exec is described in its man page. Under GNOME, xdg-terminal-exec will pick gnome-terminal by default (because that is what is specified in /usr/share/xdg-terminal-exec/ubuntu-xdg-terminals.list) but the user can override this. In the Ptyxis terminal GUI if you scroll to the bottom of Preferences | Behaviour there is a button "Set as Default Terminal" which does as it says with a slight drawback - when pressing Ctrl+Alt+T it will only start a new terminal if no Ptyxis terminal is running already. To have the behaviour of always opening a new Ptyxis window, edit ~/.config/xdg-terminals.list and add the line org.gnome.Ptyxis.desktop:new-window to the top of the file and save.
Why does xdg-terminal-exec only "mostly" control the default terminal? Because:
- Files/Nautilus will continue to use
gnome-terminal when selecting "Open in Terminal" from its right mouse button menu even when xdg-terminal-exec launches something else because it is the nautilus-extension-gnome-terminal package that is providing that feature
- If the user sets the
org.gnome.desktop.default-applications.terminal dconf key (see the Ubuntu 24.10 instructions below) then xdg-terminal-exec will be cut out of the loop
- Tools like
x-terminal-emulator specify the terminal to use separately via update-alternatives
In the Ubuntu 24.10 package for gnome-settings-daemon an Ubuntu specific patch called media-keys-restore-terminal-keyboard-shortcut-schema.patch is being carried to add media key support for launching a terminal. This patch references the exec entry of the dconf key org.gnome.desktop.default-applications.terminal:
[...]
+static void
+do_terminal_action (GsdMediaKeysManager *manager)
+{
+ GSettings *settings;
+ char *term;
+
+ settings = g_settings_new ("org.gnome.desktop.default-applications.terminal");
+ term = g_settings_get_string (settings, "exec");
+
+ if (term)
+ execute (manager, term, FALSE);
[...]
Running
gsettings set org.gnome.desktop.default-applications.terminal exec "/usr/bin/ptyxis --new-window"
successfully made the terminal media key launch the Pytxis terminal rather than gnome-terminal.