Add kgx (gnome console) known terminals lists

This commit is contained in:
Maxime Gervais 2022-10-27 00:21:39 +02:00
parent 14fcafe2f7
commit ae65753b16
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",