mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: fvwm: Add '.desktop' file.
* gnu/packages/fvwm.scm (fvwm)[arguments]: Add new phase to create '.desktop' file. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
07d2fed2f6
commit
c217df913e
1 changed files with 21 additions and 0 deletions
|
@ -45,6 +45,27 @@ (define-public fvwm
|
|||
(base32
|
||||
"0wzghjgy65pkn31rgl14fngizw7nbkzbxsfa670xmrndpmd4sr81"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'install-xsession
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(xsessions (string-append out "/share/xsessions")))
|
||||
(mkdir-p xsessions)
|
||||
(with-output-to-file
|
||||
(string-append xsessions "/fvwm2.desktop")
|
||||
(lambda _
|
||||
(format #t
|
||||
"[Desktop Entry]~@
|
||||
Name=FVWM~@
|
||||
Comment=FVWM~@
|
||||
Exec=~a/bin/fvwm~@
|
||||
TryExec=~@*~a/bin/fvwm~@
|
||||
Icon=~@
|
||||
Type=Application~%"
|
||||
out))))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("perl" ,perl)
|
||||
("pkg-config" ,pkg-config)
|
||||
|
|
Loading…
Reference in a new issue