Skip to content

Commit bf67b03

Browse files
committed
Add environment variables missing from webOS 3 - 5
1 parent 45c3f93 commit bf67b03

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

59475947
#if defined(WEBOS)
5948+
// compatibility with webOS 3 - 5
5949+
if(getenv("XDG_RUNTIME_DIR") == NULL) {
5950+
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
5951+
}
5952+
59485953
struct rlimit limit = {0, 0};
59495954
setrlimit(RLIMIT_CORE, &limit);
59505955
#endif

0 commit comments

Comments
 (0)