diff -Nru gnome-desktop3-3.25.91.1/debian/patches/check_settings_path.patch gnome-desktop3-3.25.91.1/debian/patches/check_settings_path.patch --- gnome-desktop3-3.25.91.1/debian/patches/check_settings_path.patch 1970-01-01 01:00:00.000000000 +0100 +++ gnome-desktop3-3.25.91.1/debian/patches/check_settings_path.patch 2017-08-24 20:07:01.000000000 +0100 @@ -0,0 +1,31 @@ +From: David Mohammed +Date: Tue, 11 Jul 2017 21:07:33 +0100 +Subject: Check the settings path when loading preferences + The gnome_bg_load_from_preferences public function is called + to load and validate gsettings key values. Patch + git_revert_draw_background restores the key draw_background + only for the org.gnome.desktop.background schema. This patch + ensures that when this public function is called, the restored key is + explicitly obtained from the background schema. This prevents + segmentation faults when the public function is called, for example, + with the GNOME3 screensaver schema. +Index: gnome-desktop3-3.25.91.1/libgnome-desktop/gnome-bg.c +=================================================================== +--- gnome-desktop3-3.25.91.1.orig/libgnome-desktop/gnome-bg.c ++++ gnome-desktop3-3.25.91.1/libgnome-desktop/gnome-bg.c +@@ -315,11 +315,14 @@ gnome_bg_load_from_preferences (GnomeBG + GDesktopBackgroundShading ctype; + GdkColor c1, c2; + GDesktopBackgroundStyle placement; ++ GSettings *background_settings; + + g_return_if_fail (GNOME_IS_BG (bg)); + g_return_if_fail (G_IS_SETTINGS (settings)); + +- bg->is_enabled = g_settings_get_boolean (settings, BG_KEY_DRAW_BACKGROUND); ++ background_settings = g_settings_new ("org.gnome.desktop.background"); ++ bg->is_enabled = g_settings_get_boolean (background_settings, BG_KEY_DRAW_BACKGROUND); ++ g_object_unref (background_settings); + + /* Filename */ + filename = g_settings_get_mapped (settings, BG_KEY_PICTURE_URI, bg_gsettings_mapping, NULL); diff -Nru gnome-desktop3-3.25.91.1/debian/patches/series gnome-desktop3-3.25.91.1/debian/patches/series --- gnome-desktop3-3.25.91.1/debian/patches/series 2017-08-24 20:07:01.000000000 +0100 +++ gnome-desktop3-3.25.91.1/debian/patches/series 2017-08-24 20:07:01.000000000 +0100 @@ -5,3 +5,4 @@ ubuntu_language_list_from_SUPPORTED.patch gnomebg_hidpi_image.patch disable-bubblewrap.patch +check_settings_path.patch