From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SFrjAQLIb2dg4wAA62LTzQ:P1 (envelope-from ) for ; Sat, 28 Dec 2024 09:42:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SFrjAQLIb2dg4wAA62LTzQ (envelope-from ) for ; Sat, 28 Dec 2024 10:42:26 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JCMEBgZY; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=eodoauuu; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735378945; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NWoZd3cQSuAeRZ7quZc4PoSWIPM0DBq1bqoeG6iGbMA=; b=onbexoLQ/8kr56pldIBP5xfWlJ/WV0lq/RTpGrQE85ZBXe2eAfO1/E+6IMs04ukCiG1anL AzM7NIBEaw8uXnl0hi1hhuYPm61gRV7zKFheey36lG6UWUt3ttLzN0IuEx6m0uKZhnXSG6 4PplL1GDHiX/TeYnoMftMqbgxI14Z422KI6Kh/Z8dObTstgWRqUju+1KgGrhkz2uRMdJdk xhM7TYrAozR4x6YSA+dJRue+Hlvzn/pbVnfBpdlEuk0XMkwaKOLdutmC69hb2DhCMNycLk 4jZ6xmipbBmIrRgzBUMjqnpUNk8Fz6KS+NWgQy44GtDhmN4QT+OQ/0fcbBjTAg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JCMEBgZY; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=eodoauuu; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=163.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735378945; a=rsa-sha256; cv=none; b=tyX6JNZCQ8B9k/TKJrqD3aj47LV8zERyF/Xiu6ly4MHQnYDTxjIjKG9FgnwLZgFrJKhqmr TsYzKLIIelaUCn9lXrQlnSoNDLlGopQ0K4R7ND7YLrO4uIlDHZxCw4H9k2VxetkOebuuQs 1PHO50Mljv5vPchl5TtHEe1lXVaQ+NxrmvGI/JCu+YzIl4R8TnLO9FGYBKXRr5E8E9MdH8 t0CiDOFpyW1s8atUI1cLGeCJU4FQoXYOmiOuKr1rSSjC+g63qDErTW2V7Y6wnrPCUSBUnu hWP0bBfjeJjJlbo/MLPseFDocZU6JYIsZhOjOZ2fLF3m9auD0+3k2RxoVGJfVQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 46DD754404 for ; Sat, 28 Dec 2024 10:42:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRTKj-0000I8-Aa; Sat, 28 Dec 2024 04:42:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRTKc-0000Hg-ED for guix-patches@gnu.org; Sat, 28 Dec 2024 04:42:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRTKc-0006Sh-63 for guix-patches@gnu.org; Sat, 28 Dec 2024 04:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=NWoZd3cQSuAeRZ7quZc4PoSWIPM0DBq1bqoeG6iGbMA=; b=JCMEBgZY8z4aT/QVrUHSczh9aUv0thCjkDo9JRrkXFTS242YPIZEzkrO4P0TX1Geb01JOGPth4sRNXQzZOB+iLOLO3jxhSRv3paLZ5R600h2up0aZpC/IGLMqvAA0PlmySRNoUAIBhCyPfQaRDxZbNcwAb3WOWDP0S0sudV/FYP+xbZCmh+ZU8oBFDb4UIg13EmotGk/Pr6qrMS+Ky1hlFH3srIx7UgAhj/HIvqhCXmA7ii7oVhsvdiDXgmsSxE+3Ab8k51qbMx6rOQCjrkxKDJwmJQOYXp1fLukau2WpNkD/Q/YA4UkWNUi5G4mN6VFhJLYlb5Eav3a7fRQ36ELDg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRTKb-0002VJ-PP for guix-patches@gnu.org; Sat, 28 Dec 2024 04:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75043] [PATCH v4] gnu: Add slick-greeter. References: <87ldw6vj2v.fsf@163.com> In-Reply-To: <87ldw6vj2v.fsf@163.com> Resent-From: tumashu@163.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Dec 2024 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75043 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75043@debbugs.gnu.org Cc: Feng Shu Received: via spool by 75043-submit@debbugs.gnu.org id=B75043.17353789209618 (code B ref 75043); Sat, 28 Dec 2024 09:42:01 +0000 Received: (at 75043) by debbugs.gnu.org; 28 Dec 2024 09:42:00 +0000 Received: from localhost ([127.0.0.1]:48792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRTKa-0002V3-9X for submit@debbugs.gnu.org; Sat, 28 Dec 2024 04:42:00 -0500 Received: from m16.mail.163.com ([117.135.210.2]:45784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRTKV-0002Uk-9h for 75043@debbugs.gnu.org; Sat, 28 Dec 2024 04:41:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=NWoZd 3cQSuAeRZ7quZc4PoSWIPM0DBq1bqoeG6iGbMA=; b=eodoauuuko8OoSwVnYkTm MV1Ia7KnN/h0ftP6dsJoC+Tv7J2BZVjMHJ3yh4i4yfzlOMDUXO3UGG41kANeIBVN Itq0UU+r9meMkOOym+JCGXP4ofAqMbU5t3UtqckiQEDLWuaDBNGtFEIXQkqP5trw OSIK5V9v24uxzajKksAmI8= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-3 (Coremail) with SMTP id _____wD3X9Tcx29nW9IlCQ--.439S2; Sat, 28 Dec 2024 17:41:49 +0800 (CST) From: tumashu@163.com Date: Sat, 28 Dec 2024 17:41:06 +0800 Message-ID: <20241228094122.22786-1-tumashu@163.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wD3X9Tcx29nW9IlCQ--.439S2 X-Coremail-Antispam: 1Uf129KBjvJXoW3Ar1DKr1UGFWrCF1fKFy5twb_yoW7Wr43pF WSkFyrGr4UArn5XFWxWw42qw13Cas3tFW8t343uryayayYkrWUZFy2va98Ar1xGw17A3yU Ww4UXw17AFyDurJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUVxR3UUUUU= X-Originating-IP: [218.92.14.78] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/1tbiYAPD1GdvwZZtgAAAsG X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 46DD754404 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.29 X-Spam-Score: -2.29 X-TUID: NyoquCA08P5q From: Feng Shu * gnu/packages/display-managers.scm (slick-greeter): New variable. Change-Id: I9f117bd91bfe9edbd0619f434ad46399e3c59b99 --- gnu/packages/display-managers.scm | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index b70f8101e6..2967ba0a44 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -39,6 +39,7 @@ (define-module (gnu packages display-managers) #:use-module (guix build-system qt) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system meson) #:use-module (guix build-system trivial) #:use-module (guix packages) #:use-module (guix utils) @@ -48,9 +49,11 @@ (define-module (gnu packages display-managers) #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages cinnamon) #:use-module (gnu packages crypto) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) @@ -59,6 +62,7 @@ (define-module (gnu packages display-managers) #:use-module (gnu packages guile) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) + #:use-module (gnu packages libcanberra) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -461,6 +465,102 @@ (define make-flags* display manager which supports different greeters.") (license license:gpl3+))) +(define-public slick-greeter + (package + (name "slick-greeter") + (version "2.0.8") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/linuxmint/slick-greeter") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pk8d8mpnrh70xdi9mfn1h5xkrf09v06vbi1p1wzqdskzfh3ci1n")))) + (build-system meson-build-system) + (arguments + (list + #:glib-or-gtk? #t + #:configure-flags + #~(list + ;; Put the binary under /bin rather than /sbin, so that it gets + ;; wrapped by the glib-or-gtk-wrap phase. + (string-append "--sbindir=" #$output "/bin")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-hardcoded-paths + (lambda _ + (substitute* '("src/slick-greeter.vala" + "src/session-list.vala") + (("/usr/bin/slick-greeter-") + (string-append #$output "/bin/slick-greeter-")) + (("/usr/share/slick-greeter/badges/") + (string-append #$output "/share/slick-greeter/badges/")) + (("/usr/share/xsessions/") + "/run/current-system/profile/share/xsessions/") + (("/usr/share/wayland-sessions/") + "/run/current-system/profile/share/wayland-sessions/")))) + (add-after 'glib-or-gtk-wrap 'custom-wrap + (lambda _ + (wrap-script (string-append #$output "/bin/slick-greeter") + ;; Wrap GDK_PIXBUF_MODULE_FILE, so that the SVG loader is + ;; available at all times even outside of profiles, such as + ;; when used in the lightdm-service-type. Otherwise, it + ;; wouldn't be able to display its own icons. + `("GDK_PIXBUF_MODULE_FILE" = + (,(string-append + #$output + "/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"))) + `("XDG_DATA_DIRS" ":" prefix + (,(string-append "/run/current-system/profile/share:" + (getenv "XDG_DATA_DIRS")))) + '("XCURSOR_PATH" ":" prefix + ("/run/current-system/profile/share/icons"))))) + (add-after 'install 'wrap-program + (lambda _ + (for-each + (lambda (prog) + (wrap-program (string-append #$output "/bin/" prog) + `("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH"))) + `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))) + '("slick-greeter-check-hidpi" + "slick-greeter-set-keyboard-layout" + "slick-greeter-enable-tap-to-click")))) + (add-after 'install 'fix-.desktop-file + (lambda _ + (substitute* (string-append + #$output + "/share/xgreeters/slick-greeter.desktop") + (("Exec=slick-greeter") + (string-append "Exec=" + (string-append + #$output "/bin/slick-greeter"))))))))) + (native-inputs + (list gettext-minimal + (list glib "bin") + pkg-config + vala)) + (inputs + (list dbus + gtk+ + guile-3.0 + libcanberra + libgnomekbd + libxapp + libxkbfile + lightdm + pixman + python-pygobject + python-wrapper)) + (synopsis "A slick-looking LightDM greeter") + (home-page "https://github.com/linuxmint/slick-greeter") + (description "Slick-Greeter is a fork of Unity Greeter 16.04.2, it is +cross-distribution and work pretty much anywhere, it supports HiDPI, If a +default/chosen session isn't present on the system, it will scans for known +sessions dirs and replaces the invalid session choice with a valid session.") + (license license:gpl3))) + (define-public lightdm-gtk-greeter (package (name "lightdm-gtk-greeter") -- 2.45.2