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)
}