Skip to content

Commit 0e41365

Browse files
committed
Add environment variables missing from webOS 3 - 5
1 parent 42704b9 commit 0e41365

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

retroarch.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5928,6 +5928,11 @@ int rarch_main(int argc, char *argv[], void *data)
59285928
#endif
59295929

59305930
#if defined(WEBOS)
5931+
// compatibility with webOS 3 - 5
5932+
if(getenv("XDG_RUNTIME_DIR") == NULL) {
5933+
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
5934+
}
5935+
59315936
struct rlimit limit = {0, 0};
59325937
setrlimit(RLIMIT_CORE, &limit);
59335938
#endif

0 commit comments

Comments
 (0)