mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
CreateUserJob: do not force any autologin group
There is no need to force folks haing a random group bc that is a Distro think. SDDM/GDM works just fine without having a group for the user to autologin. Just setup a group in users.conf .. is why we have a configuration option for that.
This commit is contained in:
parent
da4fa6a63a
commit
5d241f8e09
1 changed files with 5 additions and 6 deletions
|
@ -115,13 +115,12 @@ CreateUserJob::exec()
|
||||||
{
|
{
|
||||||
QString autologinGroup;
|
QString autologinGroup;
|
||||||
if ( gs->contains( "autologinGroup" ) &&
|
if ( gs->contains( "autologinGroup" ) &&
|
||||||
!gs->value( "autologinGroup" ).toString().isEmpty() )
|
!gs->value( "autologinGroup" ).toString().isEmpty() )
|
||||||
|
{
|
||||||
autologinGroup = gs->value( "autologinGroup" ).toString();
|
autologinGroup = gs->value( "autologinGroup" ).toString();
|
||||||
else
|
CalamaresUtils::System::instance()->targetEnvCall( { "groupadd", autologinGroup } );
|
||||||
autologinGroup = QStringLiteral( "autologin" );
|
defaultGroups.append( QString( ",%1" ).arg( autologinGroup ) );
|
||||||
|
}
|
||||||
CalamaresUtils::System::instance()->targetEnvCall( { "groupadd", autologinGroup } );
|
|
||||||
defaultGroups.append( QString( ",%1" ).arg( autologinGroup ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're looking to reuse the contents of an existing /home
|
// If we're looking to reuse the contents of an existing /home
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue