Commit 660dd17c authored by Tomi Leppänen's avatar Tomi Leppänen

[setlocale] Check that user belongs to users.

A little bit of fortifying this while at it.
Signed-off-by: Tomi Leppänen's avatarTomi Leppänen <>
parent 29cd80d0
......@@ -110,6 +110,11 @@ int main(int argc, char *argv[])
if (!sailfish_access_control_hasgroup(getuid(), "users")) {
qWarning() << "User with id" << getuid() << "is not member of users group";
QString configPath = localeConfigPath();
if (configPath.isEmpty()) {
Markdown is supported
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