termux-packages/packages/1oom/src-os-unix-os.c.patch
2022-04-05 09:15:10 +09:00

14 lines
578 B
Diff

--- a/src/os/unix/os.c
+++ b/src/os/unix/os.c
@@ -79,8 +79,8 @@
all_data_paths[i++] = util_concat(p, "/.local/share/1oom", NULL);;
}
}
- all_data_paths[i++] = lib_stralloc("/usr/share/1oom");
- all_data_paths[i++] = lib_stralloc("/usr/local/share/1oom");
+ all_data_paths[i++] = lib_stralloc("@TERMUX_PREFIX@/share/1oom");
+ all_data_paths[i++] = lib_stralloc("@TERMUX_PREFIX@/local/share/1oom");
all_data_paths[i++] = lib_stralloc(".");
all_data_paths[i] = NULL;
num_data_paths = i;