diff -pruN 0.6.7-1/debian/changelog 0.6.7-2/debian/changelog
--- 0.6.7-1/debian/changelog	2022-06-26 11:21:08.000000000 +0000
+++ 0.6.7-2/debian/changelog	2022-08-02 08:28:06.000000000 +0000
@@ -1,3 +1,13 @@
+chatty (0.6.7-2) unstable; urgency=medium
+
+  * Mark as team upload
+  * utils: update for GNOME Desktop 43 thumbnail API changes.
+    Thanks to Jeremy Bicha for the patch. (Closes: #1016171)
+  * d/rules: Use gsettings memory backend
+    This avoids test failures when dconf backend can't be written.
+
+ -- Guido Günther <agx@sigxcpu.org>  Tue, 02 Aug 2022 10:28:06 +0200
+
 chatty (0.6.7-1) unstable; urgency=medium
 
   * New upstream version 0.6.7
diff -pruN 0.6.7-1/debian/patches/series 0.6.7-2/debian/patches/series
--- 0.6.7-1/debian/patches/series	2022-03-29 14:36:44.000000000 +0000
+++ 0.6.7-2/debian/patches/series	2022-08-02 08:28:06.000000000 +0000
@@ -1 +1,2 @@
 0001-Disable-clock-test.patch
+utils-update-for-GNOME-Desktop-43-thumbnail-API-changes.patch
diff -pruN 0.6.7-1/debian/patches/utils-update-for-GNOME-Desktop-43-thumbnail-API-changes.patch 0.6.7-2/debian/patches/utils-update-for-GNOME-Desktop-43-thumbnail-API-changes.patch
--- 0.6.7-1/debian/patches/utils-update-for-GNOME-Desktop-43-thumbnail-API-changes.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.6.7-2/debian/patches/utils-update-for-GNOME-Desktop-43-thumbnail-API-changes.patch	2022-08-02 08:28:06.000000000 +0000
@@ -0,0 +1,48 @@
+From: Jeremy Bicha <jeremy.bicha@canonical.com>
+Date: Mon, 1 Aug 2022 10:05:56 -0400
+Subject: utils: update for GNOME Desktop 43 thumbnail API changes
+
+Fixes: #726
+---
+ src/chatty-utils.c | 21 +++++++++++++++++++++
+ 1 file changed, 21 insertions(+)
+
+diff --git a/src/chatty-utils.c b/src/chatty-utils.c
+index c95d938..6d38ad1 100644
+--- a/src/chatty-utils.c
++++ b/src/chatty-utils.c
+@@ -550,6 +550,26 @@ utils_create_thumbnail (GTask        *task,
+     return;
+   }
+ 
++#if defined(GNOME_DESKTOP_PLATFORM_VERSION) && GNOME_DESKTOP_PLATFORM_VERSION >= 43
++  thumbnail = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, uri, content_type, NULL, &error);
++  if (!thumbnail) {
++    g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to create thumbnail for file: %s (%s)", uri, error->message);
++
++    g_warning ("Failed to create thumbnail for file: %s", uri);
++
++    g_error_free (error);
++    return;
++  }
++
++  gnome_desktop_thumbnail_factory_save_thumbnail (factory, thumbnail, uri, mtime, NULL, &error);
++  if (error) {
++    g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to create thumbnail for file: %s (%s)", uri, error->message);
++    g_error_free (error);
++    return;
++  }
++
++  g_task_return_boolean (task, TRUE);
++#else
+   thumbnail = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, uri, content_type);
+ 
+   if (thumbnail) {
+@@ -562,6 +582,7 @@ utils_create_thumbnail (GTask        *task,
+   }
+ 
+   g_task_return_boolean (task, TRUE);
++#endif
+ }
+ 
+ void
diff -pruN 0.6.7-1/debian/rules 0.6.7-2/debian/rules
--- 0.6.7-1/debian/rules	2022-05-20 15:52:28.000000000 +0000
+++ 0.6.7-2/debian/rules	2022-08-02 08:28:06.000000000 +0000
@@ -15,4 +15,4 @@ override_dh_installman:
 # otherwise the tests running gtk-builder-tool to validate
 # .ui files might fail
 override_dh_auto_test:
-	NO_AT_BRIDGE=1 LANGUAGE=C.UTF-8 xvfb-run dh_auto_test
+	GSETTINGS_BACKEND=memory NO_AT_BRIDGE=1 LANGUAGE=C.UTF-8 xvfb-run dh_auto_test
