Skip to content

Commit 16435c5

Browse files
committed
Add environment variables missing from webOS 3 - 5
1 parent bb0551b commit 16435c5

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
@@ -5951,6 +5951,11 @@ int rarch_main(int argc, char *argv[], void *data)
59515951
#endif
59525952

59535953
#if defined(WEBOS)
5954+
// compatibility with webOS 3 - 5
5955+
if(getenv("XDG_RUNTIME_DIR") == NULL) {
5956+
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
5957+
}
5958+
59545959
struct rlimit limit = {0, 0};
59555960
setrlimit(RLIMIT_CORE, &limit);
59565961
#endif

0 commit comments

Comments
 (0)