Merge branch 'release-3.2.39.2' into calamares

This commit is contained in:
Adriaan de Groot 2021-04-02 16:25:31 +02:00
commit db51e813fb
4 changed files with 31 additions and 31 deletions

View File

@ -32,6 +32,13 @@ This release contains contributions from (alphabetically by first name):
has been revived and merged. has been revived and merged.
# 3.2.39.2 (2021-04-02) #
This is **another** hotfix release for issues around autologin ..
autoLogin, really, since the whole problem is that internal capitalization
changed. (Reported by pcrepix, #1668)
# 3.2.39.1 (2021-03-30) # # 3.2.39.1 (2021-03-30) #
This hotfix release corrects a regression in the *displaymanager* This hotfix release corrects a regression in the *displaymanager*

View File

@ -210,6 +210,10 @@ Config::Config( QObject* parent )
m_setxkbmapTimer.start( QApplication::keyboardInputInterval() ); m_setxkbmapTimer.start( QApplication::keyboardInputInterval() );
emit prettyStatusChanged(); emit prettyStatusChanged();
} ); } );
m_selectedModel = m_keyboardModelsModel->key( m_keyboardModelsModel->currentIndex() );
m_selectedLayout = m_keyboardLayoutsModel->item( m_keyboardLayoutsModel->currentIndex() ).first;
m_selectedVariant = m_keyboardVariantsModel->key( m_keyboardVariantsModel->currentIndex() );
} }
KeyboardModelsModel* KeyboardModelsModel*
@ -528,38 +532,15 @@ Config::setConfigurationMap( const QVariantMap& configurationMap )
{ {
using namespace CalamaresUtils; using namespace CalamaresUtils;
if ( configurationMap.contains( "xOrgConfFileName" ) const auto xorgConfDefault = QStringLiteral( "00-keyboard.conf" );
&& configurationMap.value( "xOrgConfFileName" ).type() == QVariant::String m_xOrgConfFileName = getString( configurationMap, "xOrgConfFileName", xorgConfDefault );
&& !getString( configurationMap, "xOrgConfFileName" ).isEmpty() ) if ( m_xOrgConfFileName.isEmpty() )
{ {
m_xOrgConfFileName = getString( configurationMap, "xOrgConfFileName" ); m_xOrgConfFileName = xorgConfDefault;
} }
else
{
m_xOrgConfFileName = "00-keyboard.conf";
}
if ( configurationMap.contains( "convertedKeymapPath" )
&& configurationMap.value( "convertedKeymapPath" ).type() == QVariant::String
&& !getString( configurationMap, "convertedKeymapPath" ).isEmpty() )
{
m_convertedKeymapPath = getString( configurationMap, "convertedKeymapPath" ); m_convertedKeymapPath = getString( configurationMap, "convertedKeymapPath" );
}
else
{
m_convertedKeymapPath = QString();
}
if ( configurationMap.contains( "writeEtcDefaultKeyboard" )
&& configurationMap.value( "writeEtcDefaultKeyboard" ).type() == QVariant::Bool )
{
m_writeEtcDefaultKeyboard = getBool( configurationMap, "writeEtcDefaultKeyboard", true ); m_writeEtcDefaultKeyboard = getBool( configurationMap, "writeEtcDefaultKeyboard", true );
} }
else
{
m_writeEtcDefaultKeyboard = true;
}
}
void void
Config::retranslate() Config::retranslate()

View File

@ -820,7 +820,19 @@ Config::setConfigurationMap( const QVariantMap& configurationMap )
m_hostNameActions = getHostNameActions( configurationMap ); m_hostNameActions = getHostNameActions( configurationMap );
setConfigurationDefaultGroups( configurationMap, m_defaultGroups ); setConfigurationDefaultGroups( configurationMap, m_defaultGroups );
m_doAutoLogin = CalamaresUtils::getBool( configurationMap, "doAutoLogin", false );
// Renaming of Autologin -> AutoLogin in 4ffa79d4cf also affected
// configuration keys, which was not intended. Accept both.
const auto oldKey = QStringLiteral( "doAutologin" );
const auto newKey = QStringLiteral( "doAutoLogin" );
if ( configurationMap.contains( oldKey ) )
{
m_doAutoLogin = CalamaresUtils::getBool( configurationMap, oldKey, false );
}
else
{
m_doAutoLogin = CalamaresUtils::getBool( configurationMap, newKey, false );
}
m_writeRootPassword = CalamaresUtils::getBool( configurationMap, "setRootPassword", true ); m_writeRootPassword = CalamaresUtils::getBool( configurationMap, "setRootPassword", true );
Calamares::JobQueue::instance()->globalStorage()->insert( "setRootPassword", m_writeRootPassword ); Calamares::JobQueue::instance()->globalStorage()->insert( "setRootPassword", m_writeRootPassword );