Przeglądaj źródła

Tweak new folder defaults

Jakob Borg 10 lat temu
rodzic
commit
b3a2bf367b
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 1
      cmd/syncthing/locations.go
  2. 1 0
      cmd/syncthing/main.go

+ 1 - 1
cmd/syncthing/locations.go

@@ -54,7 +54,7 @@ var locations = map[locationEnum]string{
 	locPanicLog:      "${config}/panic-${timestamp}.log",
 	locPanicLog:      "${config}/panic-${timestamp}.log",
 	locAuditLog:      "${config}/audit-${timestamp}.log",
 	locAuditLog:      "${config}/audit-${timestamp}.log",
 	locGUIAssets:     "${config}/gui",
 	locGUIAssets:     "${config}/gui",
-	locDefFolder:     "${home}/Sync",
+	locDefFolder:     "${home}/Sync/",
 }
 }
 
 
 // expandLocations replaces the variables in the location map with actual
 // expandLocations replaces the variables in the location map with actual

+ 1 - 0
cmd/syncthing/main.go

@@ -961,6 +961,7 @@ func defaultConfig(myName string) config.Configuration {
 			RescanIntervalS: 60,
 			RescanIntervalS: 60,
 			MinDiskFreePct:  1,
 			MinDiskFreePct:  1,
 			Devices:         []config.FolderDeviceConfiguration{{DeviceID: myID}},
 			Devices:         []config.FolderDeviceConfiguration{{DeviceID: myID}},
+			AutoNormalize:   true,
 		},
 		},
 	}
 	}
 	newCfg.Devices = []config.DeviceConfiguration{
 	newCfg.Devices = []config.DeviceConfiguration{