[PATCH] gnu: Add lightdm-mini-greeter.

  • Open
  • quality assurance status badge
Details
One participant
  • Feng Shu
Owner
unassigned
Submitted by
Feng Shu
Severity
normal
F
F
Feng Shu wrote 47 hours ago
(address . guix-patches@gnu.org)
87h66uvj1w.fsf@163.com
From de4741a39927692bb6063978dfd49b9666727a29 Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@163.com>
Date: Mon, 23 Dec 2024 17:19:48 +0800
Subject: [PATCH] gnu: Add lightdm-mini-greeter.

* gnu/packages/display-managers.scm (lightdm-mini-greeter): New variable.

Change-Id: I83b9c62cba7228b5b73587f44ac6185340641e22
---
gnu/packages/display-managers.scm | 46 +++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)

Toggle diff (62 lines)
diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm
index df5fc0a857..b70f8101e6 100644
--- a/gnu/packages/display-managers.scm
+++ b/gnu/packages/display-managers.scm
@@ -543,6 +543,52 @@ (define-public lightdm-gtk-greeter
GTK+, lets you select a desktop session and log in to it.")
(license license:gpl3+)))
+(define-public lightdm-mini-greeter
+ (package
+ (name "lightdm-mini-greeter")
+ (version "0.5.1-ead793")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/prikhi/lightdm-mini-greeter")
+ (commit "ead7936993b4e9e067d73fa49dec7edfb46c73a8")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17iy1jkllmi2xc95csb18wcfvbk44gyva2in2k5f29fy362ppz25"))))
+ (build-system glib-or-gtk-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'customize-default-config-path
+ (lambda _
+ (substitute* "Makefile.am"
+ ;; Have the default config directory sourced from
+ ;; /etc/lightdm/lightdm-mini-greeter.conf, which is where the
+ ;; lightdm service writes it.
+ (("\\$\\(sysconfdir)/lightdm/lightdm-mini-greeter.conf")
+ "/etc/lightdm/lightdm-mini-greeter.conf"))))
+ (add-after 'install 'fix-.desktop-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* (search-input-file
+ outputs
+ "share/xgreeters/lightdm-mini-greeter.desktop")
+ (("Exec=lightdm-mini-greeter")
+ (string-append "Exec="
+ (search-input-file
+ outputs "bin/lightdm-mini-greeter")))))))))
+ (native-inputs
+ (list autoconf automake pkg-config))
+ (inputs
+ (list gtk+ lightdm))
+ (synopsis "Mini Greeter for LightDM")
+ (home-page "https://github.com/prikhi/lightdm-mini-greeter")
+ (description "This package provide a minimal but highly configurable single-user GTK3
+greeter for LightDM, this greeter is inspired by the SLiM Display Manager and
+LightDM GTK3 Greeter.")
+ (license license:gpl3)))
+
(define-public slim
(package
(name "slim")
--
2.45.2



--
T
T
tumashu wrote 6 hours ago
[PATCH v2] gnu: Add lightdm-mini-greeter.
(address . 75044@debbugs.gnu.org)(name . Feng Shu)(address . tumashu@163.com)
20241225030445.14655-1-tumashu@163.com
From: Feng Shu <tumashu@163.com>

* gnu/packages/display-managers.scm (lightdm-mini-greeter): New variable.

Change-Id: I558add1665d79429e2562c2139777002b7a70466
---
gnu/packages/display-managers.scm | 46 +++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)

Toggle diff (59 lines)
diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm
index df5fc0a857..b70f8101e6 100644
--- a/gnu/packages/display-managers.scm
+++ b/gnu/packages/display-managers.scm
@@ -543,6 +543,52 @@ (define-public lightdm-gtk-greeter
GTK+, lets you select a desktop session and log in to it.")
(license license:gpl3+)))
+(define-public lightdm-mini-greeter
+ (package
+ (name "lightdm-mini-greeter")
+ (version "0.5.1-ead793")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/prikhi/lightdm-mini-greeter")
+ (commit "ead7936993b4e9e067d73fa49dec7edfb46c73a8")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17iy1jkllmi2xc95csb18wcfvbk44gyva2in2k5f29fy362ppz25"))))
+ (build-system glib-or-gtk-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'customize-default-config-path
+ (lambda _
+ (substitute* "Makefile.am"
+ ;; Have the default config directory sourced from
+ ;; /etc/lightdm/lightdm-mini-greeter.conf, which is where the
+ ;; lightdm service writes it.
+ (("\\$\\(sysconfdir)/lightdm/lightdm-mini-greeter.conf")
+ "/etc/lightdm/lightdm-mini-greeter.conf"))))
+ (add-after 'install 'fix-.desktop-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* (search-input-file
+ outputs
+ "share/xgreeters/lightdm-mini-greeter.desktop")
+ (("Exec=lightdm-mini-greeter")
+ (string-append "Exec="
+ (search-input-file
+ outputs "bin/lightdm-mini-greeter")))))))))
+ (native-inputs
+ (list autoconf automake pkg-config))
+ (inputs
+ (list gtk+ lightdm))
+ (synopsis "Mini Greeter for LightDM")
+ (home-page "https://github.com/prikhi/lightdm-mini-greeter")
+ (description "This package provide a minimal but highly configurable single-user GTK3
+greeter for LightDM, this greeter is inspired by the SLiM Display Manager and
+LightDM GTK3 Greeter.")
+ (license license:gpl3)))
+
(define-public slim
(package
(name "slim")
--
2.45.2
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 75044@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 75044
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch