Concerning https://github.com/syncthing/syncthing/issues/4055.
The -paths option shows where syncthing will create the default folder. Is it possible with the initial start of syncthing to create the default folder at an alternative path?
You can use a script to start syncthing and inside that script set HomeDrive and HomePath as you like. This will then “override” what syncthing sees as ~.
Just to remark, I see that home (as filepath.Join(os.Getenv(“HomeDrive”), os.Getenv(“HomePath”))) should in my case be X:, but calling syncthing with -paths gives X:\\Sync as default sync folder directory. I wonder where the extra \ comes from.
One solution due to the choice of home in syncthing for Windows is to overwrite HomeDrive to be empty and HomePath with UserProfile. This works, and the default folder is then at %UserProfile%\Sync.
I also tried with STNODEFAULTFOLDER set in the batch file and it works, i.e. doesn’t create the default folder.