Skip to content

Commit

Permalink
SystemServer: Set HOME for services
Browse files Browse the repository at this point in the history
  • Loading branch information
bugaevc authored and awesomekling committed Dec 26, 2020
1 parent 95157f8 commit 738f5f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Services/SystemServer/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 738f5f4

Please sign in to comment.