--- a/libtransmission/platform.cc +++ b/libtransmission/platform.cc @@ -308,7 +308,7 @@ { char const* const pkg = PACKAGE_DATA_DIR; auto const xdg = tr_env_get_string("XDG_DATA_DIRS"sv); - auto const buf = fmt::format("{:s}:{:s}:/usr/local/share:/usr/share", pkg, xdg); + auto const buf = fmt::format("{:s}:{:s}:@TERMUX_PREFIX@/share", pkg, xdg); auto sv = std::string_view{ buf }; auto token = std::string_view{}; @@ -340,7 +340,7 @@ { #ifndef _WIN32 - return std::string{ "/tmp"sv }; + return std::string{ "@TERMUX_PREFIX@/tmp"sv }; #else