diff --git a/src/auth/Auth.cpp b/src/auth/Auth.cpp index fbcf04c..6f7b47e 100644 --- a/src/auth/Auth.cpp +++ b/src/auth/Auth.cpp @@ -115,7 +115,13 @@ namespace SDDM { SocketServer::instance()->helpers[id] = this; QProcessEnvironment env = child->processEnvironment(); bool langEmpty = true; - QFile localeFile(QStringLiteral("/etc/locale.conf")); + + QString path = QStringLiteral("/etc/sysconfig/i18n"); + QFileInfo localeCheck(path); + if (!localeCheck.exists() || !localeCheck.isFile() || !localeCheck.isReadable()) + path = QStringLiteral("/etc/locale.conf"); + QFile localeFile(path); + if (localeFile.open(QIODevice::ReadOnly | QIODevice::Text)) { QTextStream in(&localeFile); while (!in.atEnd()) {