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

autologin-session=guisession #253

Open
iwl opened this issue Mar 18, 2025 · 3 comments
Open

autologin-session=guisession #253

iwl opened this issue Mar 18, 2025 · 3 comments

Comments

@iwl
Copy link
Contributor

iwl commented Mar 18, 2025

sed -i 's/#user-session=.*/user-session=guisession/g' /etc/lightdm/lightdm.conf

autologin-session=guisession - - - - - should also be set
sed -i 's/#autologin-session=.*/autologin-session=guisession/g' /etc/lightdm/lightdm.conf
I think that ensures always guisession is used on autologin.
Otherwise it somehow depends on last session used and I have seen some hacks with ~/.dmrc, but still have seen the Desktop sometimes after boot.
I have also set XKBOPTIONS="terminate:ctrl_alt_bksp":
/etc/default/keyboard:
`#KEYBOARD CONFIGURATION FILE

#Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT=""
XKBOPTIONS="terminate:ctrl_alt_bksp"

BACKSPACE="guess"`
terminate:ctrl_alt_bksp -> I can kill X-Server with ctrl_alt_bksp and get to X-Server-Login, where I can login for the GUI and do some maintenance, or can press ctrl_alt_bksp again and get Autologin FullPage again,
so ctrl_alt_bksp Alternates between X-Login and Autologin FullPage

@guysoft
Copy link
Owner

guysoft commented Mar 18, 2025

Ok, it worked for me until now - does it work for you and this is just a precaution or did this break something for you?
I want to understand the urgency.

@iwl
Copy link
Contributor Author

iwl commented Mar 20, 2025

I've experienced AutoLogins into the LightDmDesktop.
That's why I investigated the Problem.
And I think that ~/.dmrc writing in some scripts of the image I used was somebodies try to solve the same problem, but haven't worked dependable for me.
Several can't cope with a Linux Desktop appearing, fewer can access the System to easy then...

@guysoft
Copy link
Owner

guysoft commented Mar 23, 2025

Ok - any chance you can draft a PR? I will get to it far later then you likely.

iwl added a commit to iwl/CustomPiOS that referenced this issue Mar 26, 2025
autologin-session always guisession, last session or ~/.dmrc if not set
guysoft pushed a commit that referenced this issue Mar 27, 2025
autologin-session always guisession, last session or ~/.dmrc if not set
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

2 participants