From 8ed5177d5a188f8722e4cfdede4967b3e73968f8 Mon Sep 17 00:00:00 2001 From: Lprndn Date: Tue, 16 Apr 2019 14:17:18 +0200 Subject: [PATCH 07/10] gnu: lightdm-gtk-greeter: Wrap binary. * gnu/package/display-managers.scm (lightdm-gtk-greeter): Wrap binary. [inputs]: Add hicolor-icon-theme. [arguments]: Add wrap-program phase. --- gnu/packages/display-managers.scm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index 4d22d28f02..de2b45d4d6 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -294,6 +294,7 @@ display manager which supports different greeters.") (inputs `(("lightdm" ,lightdm) ("at-spi2-core" ,at-spi2-core) + ("hicolor-icon-theme" ,hicolor-icon-theme) ("gtk+" ,gtk+))) (arguments `(#:configure-flags @@ -310,7 +311,27 @@ display manager which supports different greeters.") out "/share/xgreeters/lightdm-gtk-greeter.desktop") (("Exec=lightdm-gtk-greeter") (string-append "Exec=" out "/sbin/lightdm-gtk-greeter"))) - #t)))))) + #t))) + (add-after 'fix-.desktop-path 'wrap-program + (lambda* (#:key outputs inputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") + "/sbin/lightdm-gtk-greeter") + `("XDG_DATA_DIRS" ":" prefix (,(string-append (assoc-ref inputs "hicolor-icon-theme") + "/share") + ,(string-append (assoc-ref inputs "glib") + "/share") + ,(string-append (assoc-ref inputs "shared-mime-info") + "/share") + ,(string-append (assoc-ref inputs "gtk+") + "/share") + ,(string-append (assoc-ref inputs "exo") + "/share") + ,(string-append (assoc-ref outputs "out") + "/share") + "/run/current-system/profile/share")) + `("GTK_PATH" ":" prefix (,(assoc-ref inputs "gtk+"))) + `("GIO_EXTRA_MODULES" ":" prefix (,(assoc-ref inputs "gtk+")))) + #t))))) (synopsis "GTK+ greeter for LightDM") (home-page "https://launchpad.net/lightdm-gtk-greeter") (description "This package provides a LightDM greeter implementation using -- 2.21.0