summaryrefslogtreecommitdiff
path: root/Services/SystemServer/Service.cpp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-12-26 15:13:42 +0300
committerAndreas Kling <kling@serenityos.org>2020-12-26 14:23:29 +0100
commit738f5f4d663b22918818ba674717bc95483ae491 (patch)
tree663de76e5a097e547435791e9c63c55266321a9c /Services/SystemServer/Service.cpp
parent95157f8b818c198a4934eb5a786d682f8f347f25 (diff)
downloadserenity-738f5f4d663b22918818ba674717bc95483ae491.zip
SystemServer: Set HOME for services
Fixes https://github.com/SerenityOS/serenity/issues/4484
Diffstat (limited to 'Services/SystemServer/Service.cpp')
-rw-r--r--Services/SystemServer/Service.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Services/SystemServer/Service.cpp b/Services/SystemServer/Service.cpp
index 1bd205e873..eb2ac45a92 100644
--- a/Services/SystemServer/Service.cpp
+++ b/Services/SystemServer/Service.cpp
@@ -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)