termux-packages/packages/gpac/src-jsmods-core.c.patch

12 lines
295 B
Diff
Raw Normal View History

2022-01-05 22:45:50 +01:00
--- 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);