Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alerque opened this issue Jun 4, 2024 · 4 comments
Assignees

Comments

@alerque
Copy link

alerque commented Jun 4, 2024

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.

@apognu apognu self-assigned this Jun 4, 2024
@apognu
Copy link
Owner

apognu commented Jun 4, 2024

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?

@andyrtr
Copy link

andyrtr commented Jun 4, 2024

 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
Copy link

andyrtr commented Jun 4, 2024

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

@alerque
Copy link
Author

alerque commented Jun 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants