fix: change default config
This commit is contained in:
parent
e1279517a9
commit
6b9f9bd71c
1 changed files with 6 additions and 5 deletions
11
src/lib.rs
11
src/lib.rs
|
@ -84,13 +84,14 @@ impl Config {
|
||||||
pub fn create(path: &PathBuf) -> Result<(), Box<dyn std::error::Error>> {
|
pub fn create(path: &PathBuf) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let config_str = r#"
|
let config_str = r#"
|
||||||
[destinations]
|
[destinations]
|
||||||
pictures_dir = "/home/vavakado/Pictures"
|
pictures_dir = ""
|
||||||
videos_dir = "/home/vavakado/Videos"
|
videos_dir = ""
|
||||||
music_dir = "/home/vavakado/Music"
|
music_dir = ""
|
||||||
books_dir = "/home/vavakado/Books"
|
books_dir = ""
|
||||||
|
|
||||||
[sources]
|
[sources]
|
||||||
"Pictures" = "/home/vavakado/Pictures"
|
# Put your own sources there like so:
|
||||||
|
# "Source Name" = "path"
|
||||||
"#;
|
"#;
|
||||||
std::fs::write(path, config_str)?;
|
std::fs::write(path, config_str)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue