Bug#1115878: desktop-base: Debian background not set with dark theme
Package: desktop-base
Version: 12.0.1
Severity: minor
Tags: patch
Dear developers,
Since its version 42, GNOME allows to globally set a dark theme, with a
different background thanks to the dconf key
/org/gnome/desktop/background/picture-uri-dark.
This key is not set in
/usr/share/glib-2.0/schemas/10_desktop-base.gschema.override, resulting
in the background reverting to the default GNOME one if the user selects
the a dark theme, instead of keeping the Debian one.
Without creating dark versions of the Debian backgrounds, a simple
solution consists in setting the Debian background also in the
picture-uri-dark dconf key.
Here is a simple patch to do this.
I think this simple bugfix can't do any harm, and I hope it can be
backported to both Trixie and Bookworm through proposed-updates.
Regards,
--
Raphaël Halimi
From 6c9033959d32df425ccf09b1ad88debf5e657516 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Halimi?= <raphael.halimi@gmail.com>
Date: Sun, 21 Sep 2025 02:43:39 +0200
Subject: [PATCH] Also set Debian background with dark theme
Selecting the dark theme in GNOME reverts the background to the default
GNOME one, because /org/gnome/desktop/background/picture-uri-dark is not
overridden by sesktop base like picture-uri is.
Setting picture-uri-dark to the same path as picture-uri solves the
problem.
---
debian/gsettings-override | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/gsettings-override b/debian/gsettings-override
index 1a06cef..624bef1 100644
--- a/debian/gsettings-override
+++ b/debian/gsettings-override
@@ -1,6 +1,7 @@
[org.gnome.desktop.background]
picture-options='zoom'
picture-uri='file:///usr/share/images/desktop-base/desktop-background.xml'
+picture-uri-dark='file:///usr/share/images/desktop-base/desktop-background.xml'
[org.gnome.desktop.screensaver]
picture-options='zoom'
--
2.51.0
Reply to: