gnu: lightdm-gtk-greeter: Fix .desktop file.

* gnu/packages/display-managers.scm (lightdm-gtk-greeter)[arguments]: Fix
reference to greeter in .desktop file with "fix-.desktop-file" phase.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
L p R n d n 2019-04-16 13:58:26 +02:00 committed by Ricardo Wurmus
parent 4e6396983a
commit 13b012754e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -209,7 +209,17 @@ (define-public lightdm-gtk-greeter
`(#:configure-flags
(list (string-append "--enable-at-spi-command="
(assoc-ref %build-inputs "at-spi2-core")
"/libexec/at-spi-bus-launcher"))))
"/libexec/at-spi-bus-launcher"))
#:phases
(modify-phases %standard-phases
(add-after 'install 'fix-.desktop-file
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(substitute* (string-append
out "/share/xgreeters/lightdm-gtk-greeter.desktop")
(("Exec=lightdm-gtk-greeter")
(string-append "Exec=" out "/sbin/lightdm-gtk-greeter")))
#t))))))
(native-inputs
`(("exo" ,exo)
("intltool" ,intltool)