Skip to content

Commit 5dfc079

Browse files
committed
chore: use double quote to handle dash, dot, space in app name
1 parent b5bd752 commit 5dfc079

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ impl Config {
3333
if !cfg_path.exists() {
3434
let mut config_file = File::create(&cfg_path).unwrap();
3535
let default_icons = r#"# Add your icons mapping
36-
DEFAULT = ""
37-
kitty = "term"
38-
firefox = "browser"
36+
# Take care to lowercase app name
37+
# and use double quote the key and the value
38+
"DEFAULT" = ""
39+
"kitty" = "term"
40+
"firefox" = "browser"
3941
"#;
4042
write!(&mut config_file, "{}", default_icons).unwrap();
4143
println!("Default config created in {:?}", cfg_path);

0 commit comments

Comments
 (0)