diff options
| author | Timothy Sample <samplet@ngyro.com> | 2019-04-29 22:36:27 -0400 |
|---|---|---|
| committer | Timothy Sample <samplet@ngyro.com> | 2019-04-29 23:04:35 -0400 |
| commit | f420d639df54bd8d47e84e1391e1a0e4584762a7 (patch) | |
| tree | 84bbf2d925eb742ebfc237f86ccba240ca373819 | |
| parent | 9aa470e912bff3af0f5803797c8c88a6cd6bdb8b (diff) | |
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.
| -rw-r--r-- | gnu/packages/wm.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index b878df2895e..687cf9c2eed 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm | |||
| @@ -182,7 +182,19 @@ commands would.") | |||
| 182 | (list "--disable-builddir") | 182 | (list "--disable-builddir") |
| 183 | 183 | ||
| 184 | ;; The test suite requires the unpackaged Xephyr X server. | 184 | ;; The test suite requires the unpackaged Xephyr X server. |
| 185 | #:tests? #f)) | 185 | #:tests? #f |
| 186 | #:phases | ||
| 187 | (modify-phases %standard-phases | ||
| 188 | (add-after 'install 'patch-session-file | ||
| 189 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 190 | (let* ((out (assoc-ref outputs "out")) | ||
| 191 | (i3 (string-append out "/bin/i3")) | ||
| 192 | (i3-with-shmlog (string-append out "/bin/i3-with-shmlog"))) | ||
| 193 | (substitute* (string-append out "/share/xsessions/i3.desktop") | ||
| 194 | (("Exec=i3") (string-append "Exec=" i3))) | ||
| 195 | (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop") | ||
| 196 | (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog))) | ||
| 197 | #t)))))) | ||
| 186 | (inputs | 198 | (inputs |
| 187 | `(("libxcb" ,libxcb) | 199 | `(("libxcb" ,libxcb) |
| 188 | ("xcb-util" ,xcb-util) | 200 | ("xcb-util" ,xcb-util) |
