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
|
@ -45,6 +45,27 @@
|
|||
(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 New Issue