public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glib2] cve-2026-58016-f44: Add patch to prefer gnome-terminal over kgx
@ 2026-08-11 10:38 Michael Catanzaro
  0 siblings, 0 replies; only message in thread
From: Michael Catanzaro @ 2026-08-11 10:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/glib2
Branch : cve-2026-58016-f44
Commit : 070c49504d774b2c7a52b780c71e0e134952019f
Author : Michael Catanzaro <mcatanzaro@redhat.com>
Date   : 2024-05-07T16:38:12-05:00
Stats  : +58/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/glib2/c/070c49504d774b2c7a52b780c71e0e134952019f?branch=cve-2026-58016-f44

Log:
Add patch to prefer gnome-terminal over kgx

---
diff --git a/default-terminal.patch b/default-terminal.patch
new file mode 100644
index 0000000..2742e26
--- /dev/null
+++ b/default-terminal.patch
@@ -0,0 +1,55 @@
+From d7167cb1d862b15624e1e369e50f1c31448c7af3 Mon Sep 17 00:00:00 2001
+From: Christian Persch <chpe@src.gnome.org>
+Date: Thu, 4 May 2023 16:37:29 +0200
+Subject: [PATCH] gio: Lower kgx priority below gnome-terminal
+
+https://bugzilla.redhat.com/show_bug.cgi?id=2192204
+---
+ gio/gdesktopappinfo.c        | 2 +-
+ gio/tests/desktop-app-info.c | 6 +++---
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
+index 1f161328a..b8a700e58 100644
+--- a/gio/gdesktopappinfo.c
++++ b/gio/gdesktopappinfo.c
+@@ -2700,8 +2700,8 @@ prepend_terminal_to_vector (int          *argc,
+     const char *exec_arg;
+   } known_terminals[] = {
+     { "xdg-terminal-exec", NULL },
+-    { "kgx", "-e" },
+     { "gnome-terminal", "--" },
++    { "kgx", "-e" },
+     { "mate-terminal", "-x" },
+     { "xfce4-terminal", "-x" },
+     { "tilix", "-e" },
+diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
+index 594ec945d..2f468416f 100644
+--- a/gio/tests/desktop-app-info.c
++++ b/gio/tests/desktop-app-info.c
+@@ -1345,10 +1345,10 @@ 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, "kgx"))
++    return "-e";
+   if (g_str_equal (terminal_name, "tilix"))
+     return "-e";
+   if (g_str_equal (terminal_name, "konsole"))
+@@ -1864,8 +1864,8 @@ main (int   argc,
+   guint i;
+   const gchar *supported_terminals[] = {
+     "xdg-terminal-exec",
+-    "kgx",
+     "gnome-terminal",
++    "kgx",
+     "mate-terminal",
+     "xfce4-terminal",
+     "tilix",
+-- 
+2.39.1
+

diff --git a/glib2.spec b/glib2.spec
index a9ae8a5..656f6b2 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -12,6 +12,9 @@ Source:         https://download.gnome.org/sources/glib/2.80/glib-%{version}.tar
 # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
 Patch:          gnutls-hmac.patch
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=2192204
+Patch:          default-terminal.patch
+
 # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4049
 Patch:          gvariant-spec-installation.patch
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-11 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-11 10:38 [rpms/glib2] cve-2026-58016-f44: Add patch to prefer gnome-terminal over kgx Michael Catanzaro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox