Files
packages/admin/btop/patches/001-move-log-to-tmpfs.patch
T
Tianling Shen 2fd0b421e2 btop: Update to 1.4.7
Refreshed patches.

Release note: https://github.com/aristocratos/btop/releases/tag/v1.4.7

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit aa239844a8)
2026-05-20 10:21:21 +08:00

15 lines
467 B
Diff

--- a/src/btop_config.cpp
+++ b/src/btop_config.cpp
@@ -824,10 +824,7 @@ namespace Config {
if (xdg_state_home_ptr != nullptr) {
xdg_state_home = std::make_optional(fs::path(xdg_state_home_ptr));
} else {
- const auto* home_ptr = std::getenv("HOME");
- if (home_ptr != nullptr) {
- xdg_state_home = std::make_optional(fs::path(home_ptr) / ".local" / "state");
- }
+ xdg_state_home = std::make_optional(fs::path("/tmp/log"));
}
}