mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 03:46:41 +00:00
12 lines
450 B
Diff
12 lines
450 B
Diff
--- a/core/helpers.cpp
|
|
+++ b/core/helpers.cpp
|
|
@@ -338,7 +338,7 @@
|
|
DirectorySearch(std::filesystem::path{*homepath}/".local/share"/path, ext, &results);
|
|
|
|
/* Search global data dirs */
|
|
- std::string datadirs{al::getenv("XDG_DATA_DIRS").value_or("/usr/local/share/:/usr/share/")};
|
|
+ std::string datadirs{al::getenv("XDG_DATA_DIRS").value_or("@TERMUX_PREFIX@/share/")};
|
|
|
|
size_t curpos{0u};
|
|
while(curpos < datadirs.size())
|