Pi66

walrs
pywal but if its Fast-Minimal-Simple
git clone https://git.pi66.xyz/walrs

← back to log

fix theme bugs

author: pixel2175
date: 2025-06-06 04:31
hash: c1b9b0ecb76c0cc63a2cf88cc6d0cf5f472164a9

Diffstat:

M

src/create_templates.rs
7 +++++++++---------------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
diff --git a/src/create_templates.rs b/src/create_templates.rs
index 2357cd1..a85af19 100644
--- a/src/create_templates.rs
+++ b/src/create_templates.rs
@@ -121,11 +121,8 @@ fn fill_template(
 }

 pub fn create_template(colors: (Vec<(u8, u8, u8)>, u8), wallpaper: &str, send: bool) {
-    let system_template_path = "/etc/walrs/templates/";
-    let user_template_path = format!(
-        "{}/walrs/templates/",
-        get_config(send).to_string_lossy()
-    );
+    let system_template_path = get_cache(send).join("walrs").join("templates");
+    let user_template_path = format!("{}/walrs/templates/", get_config(send).to_string_lossy());
     let cache_path = format!("{}/wal/", get_cache(send).to_string_lossy());
     create_dir_all(&cache_path).unwrap_or_else(|_| {
         warning("Create", "can't create the cache folder", send);