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:
Gabriel C 2017-09-13 21:44:15 +02:00
parent da4fa6a63a
commit 5d241f8e09

View File

@ -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