From 0e4136537baae23b136c9bfc7ede35aa001e980a Mon Sep 17 00:00:00 2001 From: Craig Carnell Date: Thu, 12 Jun 2025 21:58:49 +0100 Subject: [PATCH] Add environment variables missing from webOS 3 - 5 --- retroarch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/retroarch.c b/retroarch.c index eba2ea8be8..0d1be5657f 100644 --- a/retroarch.c +++ b/retroarch.c @@ -5928,6 +5928,11 @@ int rarch_main(int argc, char *argv[], void *data) #endif #if defined(WEBOS) + // compatibility with webOS 3 - 5 + if(getenv("XDG_RUNTIME_DIR") == NULL) { + setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0); + } + struct rlimit limit = {0, 0}; setrlimit(RLIMIT_CORE, &limit); #endif