Merge branch 'kgx' into 'main'

Add kgx (gnome console) to known terminals lists

See merge request GNOME/glib!3021
This commit is contained in:
Philip Withnall 2022-10-26 23:16:20 +00:00
commit 0f471fabfb
2 changed files with 4 additions and 0 deletions

View File

@ -2638,6 +2638,7 @@ prepend_terminal_to_vector (int *argc,
const char *exec_arg;
} known_terminals[] = {
{ "xdg-terminal-exec", NULL },
{ "kgx", "-e" },
{ "gnome-terminal", "--" },
{ "mate-terminal", "-x" },
{ "xfce4-terminal", "-x" },

View File

@ -1357,6 +1357,8 @@ get_terminal_divider (const char *terminal_name)
{
if (g_str_equal (terminal_name, "xdg-terminal-exec"))
return NULL;
if (g_str_equal (terminal_name, "kgx"))
return "-e";
if (g_str_equal (terminal_name, "gnome-terminal"))
return "--";
if (g_str_equal (terminal_name, "tilix"))
@ -1597,6 +1599,7 @@ main (int argc,
guint i;
const gchar *supported_terminals[] = {
"xdg-terminal-exec",
"kgx",
"gnome-terminal",
"mate-terminal",
"xfce4-terminal",