From: muradm <mail@muradm.net>
To: Nicolas Graves <ngraves@ngraves.fr>
Cc: 70318@debbugs.gnu.org, lgcoelho@disroot.org
Subject: [bug#70318] [PATCH] Fix unitentional creation of greeter's home directory
Date: Sat, 04 Jan 2025 18:05:49 +0300 [thread overview]
Message-ID: <878qrqr54i.fsf@muradm.net> (raw)
In-Reply-To: <87o70mzn9b.fsf@ngraves.fr> (Nicolas Graves's message of "Sat, 04 Jan 2025 15:06:56 +0100")
[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]
Nicolas Graves <ngraves@ngraves.fr> writes:
> On 2025-01-03 21:05, muradm wrote:
>
>> This may break greeters which are more complex than agreety.
>> For
>> instance, gtkgreet/wlgreet run under sway. One of
>> subdependencies
>> is mesa, which will want to write shader caches somewhere.
>> Another
>> one is fontconfig, doing similar thing for fonts. There may be
>> others, which hard to track and tune. Some could be impossible
>> to
>> tune at all.
>
> Then maybe we can make it conditional on agreety?
>
> If all greetd-configuration-terminals have their
> greet-default-session-command being an greetd-agreety-session?,
> we could
> set it to #f.
>
> Something like this could work:
> (create-home-directory? (not (every greetd-agreety-session? (map
> greetd-default-session-command (greetd-configuration-terminals
> config)))))
>
> WDYT?
2 of 3 greeters needs home. With improvements implemented by 75270
`greetd-terminal-configuration` is detached from details of its
`default-session-command`. By this, any user can workout its
greeter. If we hardcode implementation of greeter in terminal user
may loose such flexibility. Also once you implement such
condition, you will have to maintain with any other greeter added
in the future.
One way would be to carry this flag into `greetd-configuration`,
IMHO will uneccessarily complicate the things. Is there any good
reason for doing that?
What is the problem with having home directory for greeter user?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2025-01-04 15:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-09 23:58 [bug#70318] [PATCH] Fix unitentional creation of greeter's home directory lgcoelho--- via Guix-patches via
2025-01-03 18:05 ` muradm
2025-01-04 14:06 ` Nicolas Graves via Guix-patches via
2025-01-04 15:05 ` muradm [this message]
2025-01-04 17:08 ` muradm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878qrqr54i.fsf@muradm.net \
--to=mail@muradm.net \
--cc=70318@debbugs.gnu.org \
--cc=lgcoelho@disroot.org \
--cc=ngraves@ngraves.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).