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:
parent
95157f8b81
commit
738f5f4d66
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue