Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package xdg-desktop-portal-gnome for
openSUSE:Factory checked in at 2024-12-22 17:58:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xdg-desktop-portal-gnome (Old)
and /work/SRC/openSUSE:Factory/.xdg-desktop-portal-gnome.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xdg-desktop-portal-gnome"
Sun Dec 22 17:58:56 2024 rev:17 rq:1232836 version:47.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome.changes
2024-10-08 17:18:52.155160824 +0200
+++
/work/SRC/openSUSE:Factory/.xdg-desktop-portal-gnome.new.1881/xdg-desktop-portal-gnome.changes
2024-12-22 17:59:07.519252193 +0100
@@ -1,0 +2,6 @@
+Fri Dec 20 12:52:46 UTC 2024 - Dominique Leuenberger <[email protected]>
+
+- Add xdg-desktop-portal-gnome-gtk_init.patch: Call gtk_init before
+ opening a display.
+
+-------------------------------------------------------------------
New:
----
xdg-desktop-portal-gnome-gtk_init.patch
BETA DEBUG BEGIN:
New:
- Add xdg-desktop-portal-gnome-gtk_init.patch: Call gtk_init before
opening a display.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ xdg-desktop-portal-gnome.spec ++++++
--- /var/tmp/diff_new_pack.5meKq0/_old 2024-12-22 17:59:08.163278644 +0100
+++ /var/tmp/diff_new_pack.5meKq0/_new 2024-12-22 17:59:08.163278644 +0100
@@ -23,6 +23,8 @@
License: LGPL-2.1-or-later
URL: https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome
Source: %{name}-%{version}.tar.zst
+# PATCH-FIX-UPSTREAM --
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/189
+Patch0: xdg-desktop-portal-gnome-gtk_init.patch
BuildRequires: c_compiler
BuildRequires: fontconfig
++++++ xdg-desktop-portal-gnome-gtk_init.patch ++++++
>From 7f3fb0afc219cc6d26fd093cb0e7aeb958e32d90 Mon Sep 17 00:00:00 2001
From: Adam Williamson <[email protected]>
Date: Thu, 7 Nov 2024 12:25:51 -0800
Subject: [PATCH] externalwindow: Call gtk_init before opening a display
See https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7836#note_2254328
Signed-off-by: Adam Williamson <[email protected]>
---
src/externalwindow-wayland.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/externalwindow-wayland.c b/src/externalwindow-wayland.c
index 4ed62c7..953ff84 100644
--- a/src/externalwindow-wayland.c
+++ b/src/externalwindow-wayland.c
@@ -287,10 +287,15 @@ init_external_window_wayland_display (GError **error)
g_setenv ("WAYLAND_SOCKET", fd_str, TRUE);
gdk_set_allowed_backends ("wayland");
- display = gdk_display_open (NULL);
- g_assert (display);
+ if (gtk_init_check ())
+ {
+ display = gdk_display_get_default ();
+ g_assert (display);
- init_x11_interop (display);
+ init_x11_interop (display);
- return display;
+ return display;
+ }
+ else
+ return NULL;
}
--
2.47.0