desbma / stfed

Syncthing Folder Event Daemon
GNU General Public License v3.0
21 stars 2 forks source link

should look for .local/state/syncthing as well #4

Closed mailinglists35 closed 2 months ago

mailinglists35 commented 2 months ago
stat("/home/user/.config/syncthing/config.xml", 0x7ffcd9284540) = -1 ENOENT (No such file or directory)
stat("/etc/xdg/syncthing/config.xml", 0x7ffcd9284540) = -1 ENOENT (No such file or directory)
thread 'main' panicked at src/config.rs:62:14:
called `Result::unwrap()` on an `Err` value: Unable to guess stfed configuration field values from Synthing config, please write a config file

recently SyncThing changed xml location to ~/.local/state/syncthing

desbma commented 2 months ago

I made a quick fix, can you try the st-state-dir branch to confirm it works?

mailinglists35 commented 2 months ago

yes, thank you. I applied only that commit as a patch to previously cloned repo then commited locally in git, then cargo build again.