guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: awesome: Use absolute paths in session file.


From: guix-commits
Subject: 02/03: gnu: awesome: Use absolute paths in session file.
Date: Mon, 29 Apr 2019 23:08:33 -0400 (EDT)

samplet pushed a commit to branch version-1.0.0
in repository guix.

commit 9aa470e912bff3af0f5803797c8c88a6cd6bdb8b
Author: Timothy Sample <address@hidden>
Date:   Mon Apr 29 20:51:37 2019 -0400

    gnu: awesome: Use absolute paths in session file.
    
    * gnu/packages/wm.scm (awesome)[arguments]: Add a phase to patch the
    session '.desktop' file to use the absolute path of the 'awesome'
    binary.
---
 gnu/packages/wm.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index c7dea8b..b878df2 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2018 Pierre-Antoine Rouby <address@hidden>
 ;;; Copyright © 2018 Meiyo Peng <address@hidden>
 ;;; Copyright © 2019 Rutger Helling <address@hidden>
+;;; Copyright © 2019 Timothy Sample <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -793,6 +794,13 @@ experience.")
              ;; There aren't any tests, so just make sure the binary
              ;; gets built and can be run successfully.
              (invoke "../build/awesome" "-v")))
+         (add-after 'install 'patch-session-file
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (awesome (string-append out "/bin/awesome")))
+               (substitute* (string-append out 
"/share/xsessions/awesome.desktop")
+                 (("Exec=awesome") (string-append "Exec=" awesome)))
+               #t)))
          (add-after 'install 'wrap
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((awesome (assoc-ref outputs "out"))



reply via email to

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