Commit d9eec8a4 authored by Max Kellermann's avatar Max Kellermann

fs/StandardDirectory: do not use $RUNTIME_DIRECTORY on Android

This is systemd specific, and Android doesn't have systemd.
parent eaecbcaf
......@@ -297,7 +297,7 @@ GetUserRuntimeDir() noexcept
AllocatedPath
GetAppRuntimeDir() noexcept
{
#ifdef __linux__
#if defined(__linux__) && !defined(ANDROID)
/* systemd specific; see systemd.exec(5) */
if (const char *runtime_directory = getenv("RUNTIME_DIRECTORY"))
if (auto dir = StringView{runtime_directory}.Split(':').first;
......
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