tuigreet icon indicating copy to clipboard operation
tuigreet copied to clipboard

The --remember-user-session flag stopped remembering the session in v0.9.1

Open alerque opened this issue 1 year ago • 6 comments

Possibly as an unexpected side effect of #141, the current version has stopped remembering the last session used. My systems are now booting up into the first session in the alphabetical list, not the one I last used.

[default_session]
command = "tuigreet --issue --time --user-menu --remember --remember-user-session --asterisks"

Given that it does remember the last user, not also remembering the last session is ridiculous. I would expect not only the user but also the last session used to be already selected on boot and just waiting for my password.

alerque avatar Jun 04 '24 11:06 alerque

I cannot seem to be able to reproduce this. Can you list the files in the tuigreet cache directory (/var/cache/tuigreet), and more specifically the content of lastsession-path-$USER?

apognu avatar Jun 04 '24 17:06 apognu

 ls /var/cache/tuigreet/
.rw-r--r--  4 greeter greeter 30 Dez  2023  lastsession
.rw-r--r-- 40 greeter greeter  3 Jun 16:05  lastsession-path-andyrtr
.rw-r--r--  7 greeter greeter  3 Jun 16:05  lastuser
.rw-r--r-- 13 greeter greeter  3 Jun 16:05  lastuser-name

andyrtr avatar Jun 04 '24 18:06 andyrtr

The lastsession file has the proper "sway" entry for me saved but starts here "Hyprland" - the 1st entry now.

andyrtr avatar Jun 04 '24 18:06 andyrtr

Similar to @andyrtr:

$ ls -al /var/cache/tuigreet/
.rw-r--r-- 44 greeter  4 Jun 11:36 lastsession-path-caleb
.rw-r--r--  5 greeter  4 Jun 11:36 lastuser
.rw-r--r-- 15 greeter  4 Jun 11:36 lastuser-name
$ cat /var/cache/tuigreet/lastsession-path-caleb
/usr/share/wayland-sessions/hyprland.desktop

This is correct for me as Hyprland is what I log into most, but Gnome is installed and shows up first in the list and that is what session is selected when I boot up.

alerque avatar Jun 04 '24 21:06 alerque

Not sure if this belongs here, but...

i set command = tuigreet --remember-user-session

upon boot system crashes with a screen that says "--remember-user-session must be used with --remember"

  1. can one have tuigreet remember last used session, without supplying and filling user?

  2. perhaps mis configured options should allow login with error as warning?

LargePrime avatar Dec 07 '24 04:12 LargePrime

doesnt seem to be the case here but a similar event can appear due to https://github.com/apognu/tuigreet/issues/162

teto avatar Apr 15 '25 09:04 teto