MX23.3 KDE Auto-login not working

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
m_pav
Developer
Posts: 1790
Joined: Sun Aug 06, 2006 3:02 pm

MX23.3 KDE Auto-login not working

#1 Post by m_pav »

So I've been experimenting with the KDE Edition and I've found a reproducable bug with Autologin. Not sure if this has been reported before so just putting it out there.

I know the forum rules state the necessity of including the QSI, but I have verified this in 4 hardware machines and 1 VM. In all scenarios tested I got the same results so I will just list the machine types because this bug is reproducable every time.

Machine 1, 2015 HP Stream Notebook, Model 11-d008tu - Celeron N280, 2GB RAM, 32GB SSD
Machine 2, 2011 Sony VAIO VPCCB-15FG, i5-2410, 4GB, 128GB SSD
Machine 3, 2016 Lenovo T460, i5-6500U, 12GB, 500GB SSD
Machine 4, 2020 Lenovo Thinkbook 15-IML i7-1051U, 16G, 500G SSD
Machine 4 - VirtualBox VM

I have recreated the Live USB between tests and all have exhibited the same behaviour.

During installation, when I set a user to auto-login, everything works normally, the user is automatically logged in. This does not change when a second user is added.
Post installation, when I use MX User Manager to set an existing user account to auto-login, the auto-login never happens. This is despite the summary screen showing the user has been set to autologin and switching between users on a multi-user setup continues to show the auto-login has been set for the user. I have confirmed this issue persists whether a root account is created in the installer and activated once operating, and when only a single user without root is created.

This phenomenon happens with both the May19 ISO and after I pull in all updates while running live prior to running the installer.

I also found there are a few packages that bear consideration for installing related to the KDE System info as they are reported as missing.
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
siamhie
Global Moderator
Posts: 3380
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX23.3 KDE Auto-login not working

#2 Post by siamhie »

m_pav wrote: Mon Jul 29, 2024 11:00 pm So I've been experimenting with the KDE Edition and I've found a reproducable bug with Autologin. Not sure if this has been reported before so just putting it out there.

During installation, when I set a user to auto-login, everything works normally, the user is automatically logged in. This does not change when a second user is added.
Post installation, when I use MX User Manager to set an existing user account to auto-login, the auto-login never happens. This is despite the summary screen showing the user has been set to autologin and switching between users on a multi-user setup continues to show the auto-login has been set for the user.

I just created a new user on my installed MX-23.3 KDE and see similar results.

I created the user (siamhie2) in the MX User Manager program, selected auto-login and when I clicked Apply, I was never prompted for a sudo's password for the change.
Screenshot.png
If I restart the computer from siamhie2's account, It will auto login to the siamhie account.
I then would have to log out, select siamhie2 and type the password (as expected when logging out of the desktop).

I can't seem to get KDE to use the siamhie2 account during boot-up after restarting the computer from that account.

Is this possibly a KDE issue?
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
fehlix
Developer
Posts: 12712
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX23.3 KDE Auto-login not working

#3 Post by fehlix »

m_pav wrote: Mon Jul 29, 2024 11:00 pm During installation, when I set a user to auto-login, everything works normally, the user is automatically logged in. This does not change when a second user is added.
A quick look reveald this:
Since mx-user was changed from running the whole app as root (with pkexec),
to run the GUI part as user and only the command needed root will run as root,
it onyl worked when starting the whole as as root with mx-user with sudo.
B/c of this part which runs as user (not s root) as user:

Code: Select all

        if (QFile::exists("/etc/sddm.conf")) {
            QSettings sddm_settings("/etc/sddm.conf", QSettings::NativeFormat);
            if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") == "KDE") {
                sddm_settings.setValue("Autologin/Session", "plasma.desktop");
            }
            sddm_settings.setValue("Autologin/User", user);
        }
        QMessageBox::information(this, tr("Autologin options"),
                                 (tr("Autologin has been enabled for the '%1' account.").arg(user)));
the line:

Code: Select all

sddm_settings.setValue("Autologin/User", user);
has no permission the change/set autologin.
Seems a simple adjustment....

User avatar
siamhie
Global Moderator
Posts: 3380
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX23.3 KDE Auto-login not working

#4 Post by siamhie »

I am now able to get ANY account to login automatically from within KDE's system settings.

I went to system settings > startup and shutdown > Login Screen > Behavior and select the account I want to default to logging in to.

login.png
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
m_pav
Developer
Posts: 1790
Joined: Sun Aug 06, 2006 3:02 pm

Re: MX23.3 KDE Auto-login not working

#5 Post by m_pav »

@siamhie I was aware of that, just looking to ensure our home-built apps will do as they say because I'm planning to introduce it to some people.
@fehlix Sounds about right.

Interestingly, Using the 2020 Thinkbook, my futzing around with autologin caused the K-menu favorite icons to disappear and leave an empty panel in the user acct I was experimenting on. It's also the 2nd time I've seen this in as many weeks, the first time was on the Sony I tested but I have no recollection of what I was doing at the time. The other user acct not affected.
Point of reference:
Line 40 in the following github file
https://github.com/MX-Linux/desktop-def ... -appletsrc
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
Adrian
Developer
Posts: 8981
Joined: Wed Jul 12, 2006 1:42 am

Re: MX23.3 KDE Auto-login not working

#6 Post by Adrian »

fehlix wrote: Tue Jul 30, 2024 12:48 am
m_pav wrote: Mon Jul 29, 2024 11:00 pm During installation, when I set a user to auto-login, everything works normally, the user is automatically logged in. This does not change when a second user is added.
A quick look reveald this:
Since mx-user was changed from running the whole app as root (with pkexec),
to run the GUI part as user and only the command needed root will run as root,
it onyl worked when starting the whole as as root with mx-user with sudo.
B/c of this part which runs as user (not s root) as user:

Code: Select all

        if (QFile::exists("/etc/sddm.conf")) {
            QSettings sddm_settings("/etc/sddm.conf", QSettings::NativeFormat);
            if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") == "KDE") {
                sddm_settings.setValue("Autologin/Session", "plasma.desktop");
            }
            sddm_settings.setValue("Autologin/User", user);
        }
        QMessageBox::information(this, tr("Autologin options"),
                                 (tr("Autologin has been enabled for the '%1' account.").arg(user)));
the line:

Code: Select all

sddm_settings.setValue("Autologin/User", user);
has no permission the change/set autologin.
Seems a simple adjustment....
Thanks, that's unfortunate. I don't think I can use setValue as root so I will have to use an external command which is yucky.

User avatar
siamhie
Global Moderator
Posts: 3380
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX23.3 KDE Auto-login not working

#7 Post by siamhie »

m_pav wrote: Tue Jul 30, 2024 2:11 am @siamhie I was aware of that, just looking to ensure our home-built apps will do as they say because I'm planning to introduce it to some people.

Sorry. Seems I misread the Post installation part.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Post Reply

Return to “Bugs and Non-Package Requests Forum”