guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.
commit 1547e3238bd75e76a20d293ea66b342f9aa4cba5
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 4507aa3a81d..5ec7ad2af0c 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]>
@@ -2755,19 +2755,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)