GNU bug report logs -
#70318
[PATCH] Fix unitentional creation of greeter's home directory
Previous Next
Reported by: lgcoelho <at> disroot.org
Date: Tue, 9 Apr 2024 23:59:01 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 70318 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
muradm <mail <at> muradm.net> writes:
>>
>> 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?
After some more meditation, I remembered that originally I also
did not like idea of having extra user home directory and
considering changes introduced by #75270, it became obvious that
sway specific environment can be setup within
`make-greetd-sway-greeter-command`. Further greeters may either
improve on it, or provide their own entry point commands as they
see fit. v2 of 75270 includes this change, and adjusts the
environment accordingly. This issue can be closed in favor if
75270.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.