Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37048454
en ru br
ALT Linux repos
S:0.19.0-alt2

Group :: Graphical desktop/KDE
RPM: sddm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-sddm-etc.locale.conf.patch
Download


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()) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin