termux-packages/packages/gpac/src-jsmods-core.c.patch
2022-01-14 15:13:07 +02:00

12 lines
295 B
Diff

--- a/src/jsmods/core.c
+++ b/src/jsmods/core.c
@@ -719,7 +719,7 @@
if (!res) res = (char *) gf_opts_get_key("General", "iOSDocumentsDir");
#else
if (!res) res = getenv("HOME");
- if (!res) res = "/home/";
+ if (!res) res = "@TERMUX_HOME@/";
#endif
return JS_NewString(ctx, res);