浏览代码

Tweak new folder defaults

Jakob Borg 10 年之前
父节点
当前提交
b3a2bf367b
共有 2 个文件被更改,包括 2 次插入1 次删除
  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",
 	locAuditLog:      "${config}/audit-${timestamp}.log",
 	locGUIAssets:     "${config}/gui",
-	locDefFolder:     "${home}/Sync",
+	locDefFolder:     "${home}/Sync/",
 }
 
 // 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,
 			MinDiskFreePct:  1,
 			Devices:         []config.FolderDeviceConfiguration{{DeviceID: myID}},
+			AutoNormalize:   true,
 		},
 	}
 	newCfg.Devices = []config.DeviceConfiguration{