Pi66

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

← back to log

Bug: bugs in copy and paths

author: pixel2175
date: 2025-06-21 17:22
hash: ca4ff4ee886989d503064d2716383a40867b4cde

Diffstat:

M

src/create_templates.rs
2 +++++++++++++++---------------

M

src/main.rs
2 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/create_templates.rs b/src/create_templates.rs
index becf8a9..d7299c9 100644
--- a/src/create_templates.rs
+++ b/src/create_templates.rs
@@ -160,7 +160,7 @@ pub fn create_template(colors: (Vec<(u8, u8, u8)>, u8), wallpaper: &str, send: b
                     };

                     // Copy template to user directory
-                    let user_file_path = format!("{}{name}", user_template_path.display());
+                    let user_file_path = format!("{}/{name}", user_template_path.display());
                     let _ = write(&user_file_path, &content);

                     fill_template(&name, &content, &colors, wallpaper, send);
diff --git a/src/main.rs b/src/main.rs
index afa0e5e..42c2454 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -137,7 +137,7 @@ fn main() {
             let colorschemes_dir = config.join("walrs").join("colorschemes");
             create_dir_all(&colorschemes_dir).unwrap();
             let walrs_cache = share_files();
-            if !theme_exists(&walrs_cache) {
+            if !theme_exists(&walrs_cache.parent().unwrap()) {
                 warning("theme", "Can't find configuration directory", send);
                 exit(1)
             }