Commit b69cbfce authored by Han Young's avatar Han Young Committed by Nate Graham
Browse files

set AccountService language

BUG: 411305
parent abfbd790
Pipeline #211490 passed with stage
in 13 minutes and 32 seconds
......@@ -9,6 +9,8 @@
#include "kcmregionandlang.h"
#include <unistd.h>
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusPendingCall>
......@@ -91,6 +93,13 @@ void KCMRegionAndLang::save()
}
}
auto setLangCall = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.Accounts"),
QStringLiteral("/org/freedesktop/Accounts/User%1").arg(getuid()),
QStringLiteral("org.freedesktop.Accounts.User"),
QStringLiteral("SetLanguage"));
setLangCall.setArguments({settings()->lang()});
QDBusConnection::systemBus().asyncCall(setLangCall);
if (!locales.isEmpty()) {
Q_EMIT startGenerateLocale();
m_generator->localesGenerate(locales);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment