guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.

commit db00fb82e2e7d46b4500d92c469bbd8d4b5474fb
Author: Brendan Tildesley <[email protected]>
AuthorDate: Tue Sep 15 23:12:07 2026 +0800

    gnu: gsettings-desktop-schemas: Reduce closure size.
    
    * gnu/packages/gnome.scm (gsettings-desktop-schemas): Remove
    gnome wallpapers.
    * gnu/services/desktop.scm: (gnome-desktop-service):
    Create a dconf-profile to set default wallpaper paths.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
    Merges: guix/guix#11295
---
 gnu/packages/gnome.scm   | 27 +++++++++++++--------------
 gnu/services/desktop.scm | 25 ++++++++++++++++++++++++-
 2 files changed, 37 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index a9eb3e64b90..2d97e693a62 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -27,7 +27,7 @@
 ;;; Copyright © 2017, 2018 nee <[email protected]>
 ;;; Copyright © 2017 Chris Marusich <[email protected]>
 ;;; Copyright © 2017 Mohammed Sadiq <[email protected]>
-;;; Copyright © 2017, 2020, 2021 Brendan Tildesley <[email protected]>
+;;; Copyright © 2017, 2020, 2021, 2026 Brendan Tildesley <[email protected]>
 ;;; Copyright © 2017, 2018 Rutger Helling <[email protected]>
 ;;; Copyright © 2018 Jovany Leandro G.C <[email protected]>
 ;;; Copyright © 2018, 2023 Vasile Dumitrascu <[email protected]>
@@ -2754,19 +2754,18 @@ and single page document formats like PDF and DejaVu.")
          "0ns8z9d5caagg5f50xklp1gh6gz3n33n3ayddz8qa9b7h98a4aha"))))
     (build-system meson-build-system)
     (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-after 'unpack 'patch-schemas
-                    (lambda* (#:key inputs #:allow-other-keys)
-                      (substitute* (find-files "schemas"
-                                               "\\.gschema\\.xml\\.in$")
-                        ;; Provide the correct file name of the default
-                        ;; GNOME background, 'adwaita-timed.xml'.
-                        (("@datadir@/backgrounds/gnome")
-                         (search-input-directory inputs
-                                                 "/share/backgrounds/gnome"))
-                        ;; Do not reference fonts, that may not exist.
-                        (("'Source Code Pro 10'") "'Monospace 11'")))))))
-    (inputs (list glib gnome-backgrounds gobject-introspection))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-schemas
+            (lambda _
+              (substitute* (find-files "schemas" "\\.gschema\\.xml\\.in$")
+                ;; Avoid large gnome-wallpapers in the closure.
+                ;; The GNOME desktop service supplies wallpaper defaults.
+                (("file://@datadir@/backgrounds/gnome/[^']+") "")
+                ;; Do not reference fonts that may not exist.
+                (("'Source Code Pro 10'") "'Monospace 11'")))))))
+    (inputs (list glib gobject-introspection))
     (native-inputs (list gettext-minimal
                          `(,glib "bin") ;glib-compile-schemas, etc.
                          gobject-introspection
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index d0b5e1dc345..607f64df3e8 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2025 dan <[email protected]>
 ;;; Copyright © 2026 Noé Lopez <[email protected]>
 ;;; Copyright © 2026 Herman Rimm <[email protected]>
+;;; Copyright © 2026 Brendan Tildesley <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2284,11 +2285,33 @@ CONFIG, a <gnome-desktop-configuration> object."
                         '()))))
     (map file-like->setuid-program files)))
 
+(define (gnome-dconf-profiles config)
+  ;; Set default wallpapers for gnome shell.
+  (list (dconf-profile
+         (name "user")
+         (keyfile
+          (dconf-keyfile
+           (name "00-gnome-backgrounds")
+           (content
+            (list "[org/gnome/desktop/background]"
+                  #~(string-append
+                     "picture-uri='file://" #$gnome-backgrounds
+                     "/share/backgrounds/gnome/adwaita-l.jxl'")
+                  #~(string-append
+                     "picture-uri-dark='file://" #$gnome-backgrounds
+                     "/share/backgrounds/gnome/adwaita-d.jxl'")
+                  "[org/gnome/desktop/screensaver]"
+                  #~(string-append
+                     "picture-uri='file://" #$gnome-backgrounds
+                     "/share/backgrounds/gnome/adwaita-l.jxl'"))))))))
+
 (define gnome-desktop-service-type
   (service-type
    (name 'gnome-desktop)
    (extensions
-    (list (service-extension udev-service-type
+    (list (service-extension dconf-service-type
+                             gnome-dconf-profiles)
+          (service-extension udev-service-type
                              gnome-udev-configuration-files)
           (service-extension pam-root-service-type
                              pam-gnome-keyring)

Reply via email to