commit: c2c8f8348386da1eac5298787acdd731bb4e39e0 Author: Rahul Sandhu <nvraxn <AT> gmail <DOT> com> AuthorDate: Sun Oct 12 03:46:14 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Nov 13 18:51:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c8f834
acct-user/greetd: install with a home directory Some graphical greeters, such as gtkgreet and wlgreet, store various things in their home directory, such as the mesa shader cache. Having a home directory also doesn't hurt for greeters that don't make use of it. As an example, greeters using Wayland compositors will attempt to cache shaders in the $HOME/.cache/mesa_shader_cache directory. Also, greetd explicitly is designed to not really care about the greeter in use, so it doesn't make sense to NOT have a home directory for the greeter: the lack of one is making an assumption about the greeter run by greetd and serves little purpose (having an extra empty directory for greeters not making use of a home directory doesn't hurt). With regard to other distros, Debian also creates a home directory for their greetd user[1][2], as does Fedora[3]. [1] https://salsa.debian.org/debian/greetd/-/blob/master/debian/greetd.postinst?ref_type=heads#L6 [2] https://salsa.debian.org/debian/greetd/-/blob/master/debian/greetd.postinst?ref_type=heads#L12-13 [3] https://src.fedoraproject.org/rpms/greetd/blob/rawhide/f/greetd.sysusers Signed-off-by: Rahul Sandhu <nvraxn <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44139 Closes: https://github.com/gentoo/gentoo/pull/44139 Signed-off-by: Sam James <sam <AT> gentoo.org> acct-user/greetd/{greetd-0-r3.ebuild => greetd-0-r4.ebuild} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acct-user/greetd/greetd-0-r3.ebuild b/acct-user/greetd/greetd-0-r4.ebuild similarity index 74% rename from acct-user/greetd/greetd-0-r3.ebuild rename to acct-user/greetd/greetd-0-r4.ebuild index 80bf0cf756d8..ffeaab5b87e0 100644 --- a/acct-user/greetd/greetd-0-r3.ebuild +++ b/acct-user/greetd/greetd-0-r4.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2024 Gentoo Authors +# Copyright 2020-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,6 +7,7 @@ inherit acct-user ACCT_USER_ID=396 ACCT_USER_GROUPS=( greetd video ) +ACCT_USER_HOME="/var/lib/greetd" DESCRIPTION="User for gui-libs/greetd" acct-user_add_deps
