diff -Nru xdg-desktop-portal-1.4.2/debian/changelog xdg-desktop-portal-1.4.2/debian/changelog --- xdg-desktop-portal-1.4.2/debian/changelog 2019-07-16 08:19:47.000000000 +0000 +++ xdg-desktop-portal-1.4.2/debian/changelog 2020-01-08 14:26:04.000000000 +0000 @@ -1,3 +1,10 @@ +xdg-desktop-portal (1.4.2-2ubuntu1) eoan; urgency=medium + + * d/p/background-Don-t-spam-the-logs.patch + - Only warn once if we don't find the shell api (LP: #1851807) + + -- Ken VanDine Wed, 08 Jan 2020 09:26:04 -0500 + xdg-desktop-portal (1.4.2-2) unstable; urgency=medium * Release to unstable diff -Nru xdg-desktop-portal-1.4.2/debian/control xdg-desktop-portal-1.4.2/debian/control --- xdg-desktop-portal-1.4.2/debian/control 2019-07-16 08:19:47.000000000 +0000 +++ xdg-desktop-portal-1.4.2/debian/control 2020-01-08 14:26:04.000000000 +0000 @@ -1,7 +1,8 @@ Source: xdg-desktop-portal Section: admin Priority: optional -Maintainer: Utopia Maintenance Team +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Utopia Maintenance Team Uploaders: Simon McVittie , Build-Depends: diff -Nru xdg-desktop-portal-1.4.2/debian/patches/background-Don-t-spam-the-logs.patch xdg-desktop-portal-1.4.2/debian/patches/background-Don-t-spam-the-logs.patch --- xdg-desktop-portal-1.4.2/debian/patches/background-Don-t-spam-the-logs.patch 1970-01-01 00:00:00.000000000 +0000 +++ xdg-desktop-portal-1.4.2/debian/patches/background-Don-t-spam-the-logs.patch 2020-01-08 14:25:06.000000000 +0000 @@ -0,0 +1,32 @@ +From 9d0c0f3bf1113bbcb53f23403ec7a587f0da0da1 Mon Sep 17 00:00:00 2001 +From: Matthias Clasen +Date: Tue, 17 Sep 2019 23:06:13 -0400 +Subject: [PATCH] background: Don't spam the logs + +Only warn once if we don't find the shell api. + +Closes: https://github.com/flatpak/xdg-desktop-portal-gtk/issues/215 +--- + src/background.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +Index: xdg-desktop-portal-1.4.2/src/background.c +=================================================================== +--- xdg-desktop-portal-1.4.2.orig/src/background.c ++++ xdg-desktop-portal-1.4.2/src/background.c +@@ -462,7 +462,14 @@ get_app_states (void) + + if (!xdp_impl_background_call_get_app_state_sync (background_impl, &apps, NULL, &error)) + { +- g_warning ("Failed to get application states: %s", error->message); ++ static int warned = 0; ++ ++ if (!warned) ++ { ++ g_warning ("Failed to get application states: %s", error->message); ++ warned = 1; ++ } ++ + return NULL; + } + diff -Nru xdg-desktop-portal-1.4.2/debian/patches/series xdg-desktop-portal-1.4.2/debian/patches/series --- xdg-desktop-portal-1.4.2/debian/patches/series 2019-07-16 08:19:47.000000000 +0000 +++ xdg-desktop-portal-1.4.2/debian/patches/series 2020-01-08 14:24:54.000000000 +0000 @@ -2,3 +2,4 @@ Revert-Stop-building-the-icon-validator.patch validate-icon-Add-a-define-for-bwrap.patch Replace-the-icon-validator-with-the-one-from-Flatpak-1.4..patch +background-Don-t-spam-the-logs.patch