0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 16:57:09 +00:00
2023-02-13 06:06:50 +00:00

21 lines
637 B
Diff

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