Skip to content

Add config option to skip selecting user/session - #81

Merged
rharish101 merged 4 commits into
mainfrom
skip_selection
May 30, 2026
Merged

Add config option to skip selecting user/session#81
rharish101 merged 4 commits into
mainfrom
skip_selection

Conversation

@rharish101

@rharish101 rharish101 commented Aug 4, 2024

Copy link
Copy Markdown
Owner

Resolves #57 and resolves #33.

@rharish101 rharish101 mentioned this pull request Aug 4, 2024
@rharish101 rharish101 mentioned this pull request Aug 13, 2024
@lyghtnox

lyghtnox commented Jan 2, 2025

Copy link
Copy Markdown

Hey,
I've tried his PR after merging it to main locally and everything works as expected using Hyprland as a compositor.
Any plan to merge and release this PR ?

@rharish101

rharish101 commented Jan 2, 2025

Copy link
Copy Markdown
Owner Author

Unfortunately, this is blocked on me figuring out a way to handle the case when the user doesn't have a password set. Right now, the user is automatically logged into their last session, and there would be no way for them to change their session (unless they change the config to disable this feature). You can check the discussion on the issue page: #57.

@Norlock

Norlock commented Jan 10, 2025

Copy link
Copy Markdown

Just a question but why would a user not have a password set?

@Norlock

Norlock commented Jan 10, 2025

Copy link
Copy Markdown

Have you thought about letting this set the user in the config.toml? Something like ask_password = false .

@rharish101

Copy link
Copy Markdown
Owner Author

Just a question but why would a user not have a password set?

Who knows why? It's part of the spec, so I have to handle it.

Have you thought about letting this set the user in the config.toml? Something like ask_password = false .

I'm not sure what you mean by this.

@Norlock

Norlock commented Jan 12, 2025

Copy link
Copy Markdown

I mean the PR already kind of does this, let the user set it in config or remember after first login if you want to show the password field immediately or not. You don't need to derive it from some command or something where you need extra privileges

@allmeta

allmeta commented Feb 26, 2025

Copy link
Copy Markdown

Bump

@Fractal-Tess

Copy link
Copy Markdown

I would like to see this merged in

@Furyfree

Furyfree commented Jan 6, 2026

Copy link
Copy Markdown

Hi! I’ve started using ReGreet and came across this PR. Is this still something you’re planning to merge, or has it stalled? I was considering implementing something similar myself, but noticed this already exists, so I wanted to check before duplicating work.

@rogervn

rogervn commented May 3, 2026

Copy link
Copy Markdown

Is this still blocked or did the PR get abandoned with no hopes of coming back?

This would be quite a nice feature.

@rharish101
rharish101 force-pushed the skip_selection branch 2 times, most recently from 4125503 to 354d754 Compare May 7, 2026 20:17
@rharish101

Copy link
Copy Markdown
Owner Author

Sorry guys, I finally found time to work on it. I've now fixed the issue that blocked me: if the skip_selection config is enabled and the last logged-in user is passwordless, ReGreet won't automatically log them in directly without a chance to change their user or session.

Can people who are still interested test it out and let me know if it works for them?

When skip_selection auto-clicks login at startup and the user has no
auth configured, greetd returns Success immediately, logging them in
without any chance to change user or session. Track whether this is the
first login to intercept this case: cancel the session and return to the
UI so the user can confirm their selection manually.
@Cryoniq

Cryoniq commented May 30, 2026

Copy link
Copy Markdown

Works fine for me. Tested on virtualbox vm, archlinux.

Cloned skip_selection branch, built release with full features enabled, installed it.
Then, created user without password.
After system boot, ReGreet shows a regular window with user and session selection if the last logged-in user is passwordless.
And if the last logged-in user has password, then it auto-selects the last session and shows password prompt from the beginning.

Please push it to the main branch soon :)

@rharish101
rharish101 merged commit 970777f into main May 30, 2026
1 check passed
@rharish101
rharish101 deleted the skip_selection branch May 30, 2026 08:17
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

Successfully merging this pull request may close these issues.

Skip selecting session Should /var/cache/regreet/cache.toml be moved to /var/lib/regreet/state.toml?

8 participants