guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/05: gnu: gsettings-desktop-schemas: Fix file name of default backgrou


From: guix-commits
Subject: 03/05: gnu: gsettings-desktop-schemas: Fix file name of default background.
Date: Sun, 17 Nov 2019 17:15:02 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 65209ffabd9245fac78eeb2caf5bcca3e4963937
Author: Ludovic Courtès <address@hidden>
Date:   Sun Nov 17 22:34:30 2019 +0100

    gnu: gsettings-desktop-schemas: Fix file name of default background.
    
    Reported by Alexandros Theodotou <address@hidden>
    at <https://lists.gnu.org/archive/html/guix-devel/2019-11/msg00157.html>.
    
    * gnu/packages/gnome.scm (gsettings-desktop-schemas)[arguments]: New
    field.
    [inputs]: Add GNOME-BACKGROUNDS.
---
 gnu/packages/gnome.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index f9126d1..d8545ea 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -861,8 +861,21 @@ on the GNOME Desktop with a single simple application.")
        (base32
         "0bshwm49cd01ighsxqlbqn10q0ch71ff99gcrx8pr2gyky2ad3pq"))))
     (build-system gnu-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'set-adwaita-theme-file-name
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      ;; Provide the correct file name of the default GNOME
+                      ;; background, 'adwaita-timed.xml'.
+                      (let ((theme (assoc-ref inputs "gnome-backgrounds")))
+                        (substitute* (find-files "schemas"
+                                                 "\\.gschema\\.xml\\.in$")
+                          (("@datadir@/backgrounds/gnome")
+                           (string-append theme "/share/backgrounds/gnome")))
+                        #t))))))
     (inputs
-     `(("glib" ,glib)))
+     `(("glib" ,glib)
+       ("gnome-backgrounds" ,gnome-backgrounds)))
     (native-inputs
      `(("intltool" ,intltool)
        ("glib" ,glib "bin")                       ; glib-compile-schemas, etc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]