summarylogtreecommitdiffstats
path: root/envs.patch
blob: a754295220166d3be1b9e92c1cb6b2eccfe0314c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/main.cpp b/src/main.cpp
index e1f43ad0..ef2b74be 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -34,6 +34,8 @@ int main(int argc, char** argv) {
     setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1);
     setenv("MOZ_ENABLE_WAYLAND", "1", 1);
     setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1);
+    setenv("ASAN_OPTIONS", "detect_odr_violation=0,log_path=asan.log", 1);
+    setenv("LD_PRELOAD", "/usr/lib/libasan.so.8.0.0", 1);
 
     // parse some args
     std::string              configPath;