Common config for Linux and Windows

You need to have everything, i.e. both the config, the database, and the folders, set up with relative paths.

For example:

  1. Place both syncthing.exe (Windows executable) and syncthing (Linux binary) in the same folder called Syncthing.

  2. Start Syncthing from that folder using syncthing.exe -home=.\files in Windows, and syncthing -home=./files in Linux.

  3. Use relative paths for your folders, e.g. image.

This way, you will have a portable installation with a folder structure resembling

Syncthing
    files
        index-v0.14.0.db
        cert.pem
        config.xml
        csrftokens.txt
        https-cert.pem
        https-key.pem
        key.pem
    Sync
    syncthing
    syncthing.exe

which you can move around and run Syncthing from it wherever you like between Windows and Linux.

Also, just a disclaimer, but please do not use your real data while experimenting with this.