1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

SystemServer: Set HOME for services

Fixes https://github.com/SerenityOS/serenity/issues/4484
This commit is contained in:
Sergey Bugaev 2020-12-26 15:13:42 +03:00 committed by Andreas Kling
parent 95157f8b81
commit 738f5f4d66

View file

@ -214,6 +214,7 @@ void Service::spawn(int socket_fd)
dbgprintf("Failed to drop privileges (GID=%u, UID=%u)\n", account.gid(), account.uid());
exit(1);
}
setenv("HOME", account.home_directory().characters(), true);
}
for (String& env : m_environment)