Skip to content

Commit 730cb13

Browse files
committed
Add environment variables missing from webOS 3
1 parent 9d09ec3 commit 730cb13

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

59005900
#if defined(WEBOS)
5901+
// compatibility with webOS 3
5902+
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 1);
5903+
setenv("XKB_CONFIG_ROOT", "/usr/share/X11/xkb", 1);
5904+
setenv("WAYLAND_DISPLAY", "wayland-0", 1);
5905+
59015906
struct rlimit limit = {0, 0};
59025907
setrlimit(RLIMIT_CORE, &limit);
59035908
#endif

0 commit comments

Comments
 (0)