fix(syncthing): use separate lock file instead of locking the certificate (fixes #10053) (#10054)

Apparently that nukes the cert under some circumstances on some Windows
🤷
This commit is contained in:
Jakob Borg
2025-04-12 14:49:23 +02:00
parent 7f3c8dbff1
commit 190a59842c
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -33,6 +33,7 @@ const (
AuditLog LocationEnum = "auditLog"
GUIAssets LocationEnum = "guiAssets"
DefFolder LocationEnum = "defFolder"
LockFile LocationEnum = "lockFile"
)
type BaseDirEnum string
@@ -124,6 +125,7 @@ var locationTemplates = map[LocationEnum]string{
AuditLog: "${data}/audit-%{timestamp}.log",
GUIAssets: "${config}/gui",
DefFolder: "${userHome}/Sync",
LockFile: "${data}/syncthing.lock",
}
var locations = make(map[LocationEnum]string)