guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: gnome-settings-daemon: Record absolute file name of Baobab.


From: guix-commits
Subject: 02/03: gnu: gnome-settings-daemon: Record absolute file name of Baobab.
Date: Fri, 18 Sep 2020 02:46:35 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 5ce6c2d91dd4dfaa48b3ece0f6a94a8c90415458
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Sep 17 14:20:39 2020 +0200

    gnu: gnome-settings-daemon: Record absolute file name of Baobab.
    
    * gnu/packages/gnome.scm (gnome-settings-daemon)[arguments]: Add
    'set-baobab-file-name' phase.
    [inputs]: Add BAOBAB.
---
 gnu/packages/gnome.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ac8e955..15719ef 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5127,6 +5127,21 @@ services for numerous locations.")
              (string-append "-Dc_link_args=-Wl,-rpath="
                             (assoc-ref %outputs "out")
                             "/lib/gnome-settings-daemon-3.0"))
+
+       #:phases (modify-phases %standard-phases
+                  (add-before 'configure 'set-baobab-file-name
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      ;; Hard-code the file name of Baobab instead of looking
+                      ;; it up in $PATH.  This ensures users get the "Examine"
+                      ;; button in the low disk space notification of GDM even
+                      ;; if they don't have GNOME in their main profile.
+                      (let ((baobab (assoc-ref inputs "baobab")))
+                        (substitute* "plugins/housekeeping/gsd-disk-space.c"
+                          (("g_find_program_in_path \\(DISK_SPACE_ANALYZER\\)")
+                           (string-append "g_strdup (\"" baobab
+                                          "/bin/baobab\")")))
+                        #t))))
+
        ;; Color management test can't reach the colord system service.
        #:tests? #f))
     (native-inputs
@@ -5139,6 +5154,7 @@ services for numerous locations.")
        ("docbook-xsl" ,docbook-xsl)))
     (inputs
      `(("alsa-lib" ,alsa-lib)
+       ("baobab" ,baobab)
        ("colord" ,colord)
        ("libgudev" ,libgudev)
        ("upower" ,upower)



reply via email to

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