fs/StandardDirectory: do not use $RUNTIME_DIRECTORY on Android

This is systemd specific, and Android doesn't have systemd.
This commit is contained in:
Max Kellermann 2022-11-28 10:44:38 +01:00
parent eaecbcafb2
commit d9eec8a455
1 changed files with 1 additions and 1 deletions

View File

@ -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;