summaryrefslogtreecommitdiffstats
path: root/admin/btop/patches/001-move-log-to-tmpfs.patch
blob: 900e136d031c54b2fbdc7f30a50c847e744279e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/btop_config.cpp
+++ b/src/btop_config.cpp
@@ -800,10 +800,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"));
 			}
 		}