stc
stc copied to clipboard
use default syncthing config path as default homedir
updates default homedir config value to use the user config dir, e.g. /home/user/.config/syncthing
Thanks for the PR! I see what you are doing there, however this will break things at least for me personally. On my Syncthing deployments I have the config and the binary in the same directory. Could you add a fall-through, if a config is not found in os.UserConfigDir() then try filepath.Dir(os.Args[0])? Perhaps just check it with os.Stat() first before passing to os.ReadFile()? Thank you!
Also could you please update README with where the config is being looked for. Thank you!