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 committed by Philip
parent fa6728b47c
commit eaea0e93ce

View File

@ -116,13 +116,12 @@ CreateUserJob::exec()
QString autologinGroup;
if ( gs->contains( "autologinGroup" ) &&
!gs->value( "autologinGroup" ).toString().isEmpty() )
{
autologinGroup = gs->value( "autologinGroup" ).toString();
else
autologinGroup = QStringLiteral( "autologin" );
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 ( gs->value( "reuseHome" ).toBool() )