public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michael Catanzaro <mcatanzaro@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: Add patch to prefer gnome-terminal over kgx
Date: Tue, 11 Aug 2026 10:38:14 GMT	[thread overview]
Message-ID: <178644469478.1.18078446735435420427.rpms-glib2-070c49504d77@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-08-11 10:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178644469478.1.18078446735435420427.rpms-glib2-070c49504d77@fedoraproject.org \
    --to=mcatanzaro@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox