summaryrefslogtreecommitdiffstats
path: root/admin/btop/patches/001-move-log-to-tmpfs.patch
blob: 7c35642e76fb14ecd08bf94fe108d366242ff8fe (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
@@ -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"));
 			}
 		}