mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: i3-wm: Use absolute paths in session files.
* gnu/packages/wm.scm (i3-wm)[arguments]: Add a phase to patch the session '.desktop' files to use the absolute paths of the 'i3' and 'i3-with-shmlog' binaries.
This commit is contained in:
parent
9aa470e912
commit
f420d639df
1 changed files with 13 additions and 1 deletions
|
@ -182,7 +182,19 @@ (define-public i3-wm
|
|||
(list "--disable-builddir")
|
||||
|
||||
;; The test suite requires the unpackaged Xephyr X server.
|
||||
#:tests? #f))
|
||||
#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'patch-session-file
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(i3 (string-append out "/bin/i3"))
|
||||
(i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
|
||||
(substitute* (string-append out "/share/xsessions/i3.desktop")
|
||||
(("Exec=i3") (string-append "Exec=" i3)))
|
||||
(substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
|
||||
(("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
|
||||
#t))))))
|
||||
(inputs
|
||||
`(("libxcb" ,libxcb)
|
||||
("xcb-util" ,xcb-util)
|
||||
|
|
Loading…
Reference in a new issue