Bug#1096094: Failed to start xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)
Simon McVittie
smcv at debian.org
Sun Feb 16 11:13:56 GMT 2025
On Sun, 16 Feb 2025 at 11:46:37 +0100, Sébastien Noel wrote:
> I have the same problem, I fixed it by applying the 2 patches in attachment
> and rebuilding the package.
> --- a/src/externalwindow-x11.c
> +++ b/src/externalwindow-x11.c
> @@ -118,5 +118,7 @@ GdkDisplay *
> init_external_window_x11_display (GError **error)
> {
> gdk_set_allowed_backends ("x11");
> - return gdk_display_open (NULL);
> + if (gtk_init_check ())
> + return gdk_display_get_default ();
> + return NULL;
> }
The timing of this bug report would be right for this being a regression
when used with GTK 4.17.x (which was uploaded to unstable 4 days ago
and migrated to testing today). However, I thought the upstream 47.2
release had already fixed compatibility with GTK 4.17.x...
Perhaps that only worked in native Wayland mode? Are you running GNOME in
X11 mode ("GNOME on Xorg")?
> --- a/src/notification.c
> +++ b/src/notification.c
> @@ -69,7 +69,7 @@
> notification_added,
> NULL);
>
> - xdp_impl_notification_complete_add_notification (object, invocation);
> + xdp_impl_notification_complete_add_notification (object, invocation, NULL);
>
> return TRUE;
> }
This is the equivalent of
https://github.com/flatpak/xdg-desktop-portal-gtk/commit/fe253f0a3296d44e23c6075b1d78638da78abe71
(but without the backward-compatibility).
smcv
More information about the pkg-gnome-maintainers
mailing list