You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
I know this happens because tuigreet stores the last loged-in user and the users last session in /var/cache/tuigreet (as well as other information). My reasoning for this being a bug is that is is my understanding that /var/cache is intended to be used for programs to cache data that could otherwise be regenerated or restored (source). User selections cannot be regenerated by the tuigreet, but have to be provided by the user to tuigreet.
The I also consider this a bug because my expectation is that I can delete /var/cache manually as the system administrator and expect applications to able to recover any data they need independently (as explained in the same source).
In my systems I use a technique known in the NixOS community from this blog post and the impermanence tool, to erase non-specified system directories on every boot. While
I can simply enable persisting /var/cache/tuigreet but, I think many (if not all) of the files that tuigreet stores in /var/cache/tuigreet should be storied in /var/lib/tuigreet (source).
The text was updated successfully, but these errors were encountered:
After deleting
/var/cache
tuigreet does not remember user or user session.To Reproduce
Steps to reproduce the behavior:
/var/cache
Expected behavior
When
/var/cache
is deleted tuigreet does not forget last selected user and user session.System information:
NixOS
greetd
version:10.0
tuigreet
version:9.0
tuigreet
command line:--user-menu --remember --remember-user-session --sessions /nix/store/vzv344vy21kc0ws8niqaqcziplyv9c9g-desktops/share/wayland-sessions
Additional context
I know this happens because tuigreet stores the last loged-in user and the users last session in
/var/cache/tuigreet
(as well as other information). My reasoning for this being a bug is that is is my understanding that/var/cache
is intended to be used for programs to cache data that could otherwise be regenerated or restored (source). User selections cannot be regenerated by the tuigreet, but have to be provided by the user to tuigreet.The I also consider this a bug because my expectation is that I can delete
/var/cache
manually as the system administrator and expect applications to able to recover any data they need independently (as explained in the same source).In my systems I use a technique known in the NixOS community from this blog post and the impermanence tool, to erase non-specified system directories on every boot. While
I can simply enable persisting
/var/cache/tuigreet
but, I think many (if not all) of the files that tuigreet stores in/var/cache/tuigreet
should be storied in/var/lib/tuigreet
(source).The text was updated successfully, but these errors were encountered: