public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kalev Lember <klember@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: Backport an upstream fix for app launching under wayland
Date: Tue, 11 Aug 2026 10:35:57 GMT [thread overview]
Message-ID: <178644455798.1.7524607831414032121.rpms-glib2-64b1fd19ea2d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/glib2
Branch : cve-2026-58016-f44
Commit : 64b1fd19ea2d70f0d857e39614d4c210cde6f6cc
Author : Kalev Lember <klember@redhat.com>
Date : 2015-10-19T22:39:43+02:00
Stats : +80/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/glib2/c/64b1fd19ea2d70f0d857e39614d4c210cde6f6cc?branch=cve-2026-58016-f44
Log:
Backport an upstream fix for app launching under wayland
https://bugzilla.redhat.com/show_bug.cgi?id=1273146
---
diff --git a/0001-GDesktopAppInfo-Do-not-set-the-DISPLAY-in-gio.patch b/0001-GDesktopAppInfo-Do-not-set-the-DISPLAY-in-gio.patch
new file mode 100644
index 0000000..00b7388
--- /dev/null
+++ b/0001-GDesktopAppInfo-Do-not-set-the-DISPLAY-in-gio.patch
@@ -0,0 +1,73 @@
+From 24a4b33ffe7f4ef3487316e85060dd37b907941d Mon Sep 17 00:00:00 2001
+From: Olivier Fourdan <ofourdan@redhat.com>
+Date: Tue, 15 Sep 2015 09:22:12 +0200
+Subject: [PATCH] GDesktopAppInfo: Do not set the DISPLAY in gio
+
+The environment variable DISPLAY makes sense only for X11, it should
+not be set in gio.
+
+Beside, if the backend is not X11 but Wayland, forcing the value of
+DISPLAY to the Wayland display will confuse the backend selection and
+possibly crash the applications.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=754983
+---
+ gio/gdesktopappinfo.c | 13 ++-----------
+ 1 file changed, 2 insertions(+), 11 deletions(-)
+
+diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
+index b229788..cbfe556 100644
+--- a/gio/gdesktopappinfo.c
++++ b/gio/gdesktopappinfo.c
+@@ -2669,7 +2669,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
+ GPid pid;
+ GList *launched_uris;
+ GList *iter;
+- char *display, *sn_id = NULL;
++ char *sn_id = NULL;
+
+ old_uris = uris;
+ if (!expand_application_parameters (info, exec_line, &uris, &argc, &argv, error))
+@@ -2708,18 +2708,11 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
+ data.pid_envvar = NULL;
+ }
+
+- display = NULL;
+ sn_id = NULL;
+ if (launch_context)
+ {
+ GList *launched_files = create_files_for_uris (launched_uris);
+
+- display = g_app_launch_context_get_display (launch_context,
+- G_APP_INFO (info),
+- launched_files);
+- if (display)
+- envp = g_environ_setenv (envp, "DISPLAY", display, TRUE);
+-
+ if (info->startup_notify)
+ {
+ sn_id = g_app_launch_context_get_startup_notify_id (launch_context,
+@@ -2744,7 +2737,6 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
+ if (sn_id)
+ g_app_launch_context_launch_failed (launch_context, sn_id);
+
+- g_free (display);
+ g_free (sn_id);
+ g_list_free (launched_uris);
+
+@@ -2771,11 +2763,10 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
+ notify_desktop_launch (session_bus,
+ info,
+ pid,
+- display,
++ NULL,
+ sn_id,
+ launched_uris);
+
+- g_free (display);
+ g_free (sn_id);
+ g_list_free (launched_uris);
+
+--
+2.5.0
+
diff --git a/glib2.spec b/glib2.spec
index 07875cc..2958bf7 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,12 +3,14 @@
Summary: A library of handy utility functions
Name: glib2
Version: 2.46.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
#VCS: git:git://git.gnome.org/glib
Source: http://download.gnome.org/sources/glib/2.46/glib-%{version}.tar.xz
+# Backported from upstream
+Patch0: 0001-GDesktopAppInfo-Do-not-set-the-DISPLAY-in-gio.patch
BuildRequires: pkgconfig
BuildRequires: gettext
@@ -81,6 +83,7 @@ the functionality of the installed glib2 package.
%prep
%setup -q -n glib-%{version}
+%patch0 -p1
%build
# Support builds of both git snapshots and tarballs packed with autogoo
@@ -223,6 +226,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas
%{_datadir}/installed-tests
%changelog
+* Mon Oct 19 2015 Kalev Lember <klember@redhat.com> - 2.46.1-2
+- Backport an upstream fix for app launching under wayland (#1273146)
+
* Wed Oct 14 2015 Kalev Lember <klember@redhat.com> - 2.46.1-1
- Update to 2.46.1
reply other threads:[~2026-08-11 10:35 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=178644455798.1.7524607831414032121.rpms-glib2-64b1fd19ea2d@fedoraproject.org \
--to=klember@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