From ae65753b16edb34eef71b377abb158c74069ce72 Mon Sep 17 00:00:00 2001 From: Maxime Gervais Date: Thu, 27 Oct 2022 00:21:39 +0200 Subject: [PATCH] Add kgx (gnome console) known terminals lists --- gio/gdesktopappinfo.c | 1 + gio/tests/desktop-app-info.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index 2c81f8c94..d0cdef51a 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -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" }, diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c index ca2ba7a28..cf46a00f8 100644 --- a/gio/tests/desktop-app-info.c +++ b/gio/tests/desktop-app-info.c @@ -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",