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
fa6728b47c
commit
eaea0e93ce
@ -116,13 +116,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
|
|
||||||
autologinGroup = QStringLiteral( "autologin" );
|
|
||||||
|
|
||||||
CalamaresUtils::System::instance()->targetEnvCall( { "groupadd", autologinGroup } );
|
CalamaresUtils::System::instance()->targetEnvCall( { "groupadd", autologinGroup } );
|
||||||
defaultGroups.append( QString( ",%1" ).arg( 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
|
||||||
if ( gs->value( "reuseHome" ).toBool() )
|
if ( gs->value( "reuseHome" ).toBool() )
|
||||||
|
Loading…
Reference in New Issue
Block a user