There should be a directory with the path of `/var/cache/regreet` that is owned by the user `greetd` so that ReGreet can remember previously picked sessions. There should also be template config files in `/etc/greetd` as well. I was able to get the config files from ReGreet's git repo, but figuring out why ReGreet wasn't properly remembering my choice of session was more difficult to figure out, so it would be nice to avoid this headache for other users.
The config file should be created by the user because they can decided if they what to run the greetd as there user (for exemple using there gtk4 theme in the login manager) about that /var/cache/regreetd that should be make by the user as well I think guru thinderbox will fail if that is created by the ebuild
Also I not using ReGreet anymore if you what that change you can always send a PR to guru repo or a patch here I will happy accept, check frist if the QA not give out a error.
By the way the repo only have the file to create logs and cache folder using systemd-tmpfile so that wouldn’t work on openrc system. That file is used if the logs useflag is enable (I should change it to systemd useflag tho), so I don’t think this would be possible to be made for all users.
Since I Bug 922945 to solve I did a few touch up to the ebuild and add regreet.sample.toml to the /usr/doc/regreet folder and some things in the elog. The manually creation of folder should work in openrc (I don't use openrc so I can test if QA fail I will revert this, in my opnion should be the user to created as it explain in the README). But @agooglygooglr@gmail.com I will not put configuration file inside /etc/greetd, that is not good pratice since user can overwrite it by mistake using dispatch-conf. Commit:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?h=dev&id=c5d3ec090a9aa553d1c04f003564aacb2989ae49
> about that /var/cache/regreetd that should be > make by the user as well I think guru thinderbox will fail if that is > created by the ebuild Are there instructions anywhere telling the user they should do this? If not, it should definitely be added; since I wasted some minutes trying to figure out why regreet wasn't functioning properly on Gentoo.
If you seen the new commit you can see I make the ebuild create the files just need someone to test it on openrc. You also need this commit (fix a typo): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?h=dev&id=9f9c456165e9c4085def938443827feee00da57f
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c5d3ec090a9aa553d1c04f003564aacb2989ae49 commit c5d3ec090a9aa553d1c04f003564aacb2989ae49 Author: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> AuthorDate: 2024-02-15 19:07:05 +0000 Commit: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> CommitDate: 2024-02-15 19:17:15 +0000 gui-apps/ReGreet: add default environment variables before build * create missing cache and log folder for systemd and openrc * add missing regreet.sample.toml * add elog message as documentation to the user * add missing depedencies Closes: https://bugs.gentoo.org/924611 Closes: https://bugs.gentoo.org/922945 Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> ...eet-0.1.1-r3.ebuild => ReGreet-0.1.1-r4.ebuild} | 61 ++++++++++++++++--- gui-apps/ReGreet/ReGreet-9999.ebuild | 71 ++++++++++++++++++---- gui-apps/ReGreet/metadata.xml | 4 +- 3 files changed, 116 insertions(+), 20 deletions(-)