diff --git a/tabby-electron/src/services/platform.service.ts b/tabby-electron/src/services/platform.service.ts index 8b19ff38..ea308de0 100644 --- a/tabby-electron/src/services/platform.service.ts +++ b/tabby-electron/src/services/platform.service.ts @@ -119,7 +119,7 @@ export class ElectronPlatformService extends PlatformService { } async _saveConfigInternal (content: string): Promise { - const tempPath = this.configPath + '.new' + const tempPath = this.configPath + '.new.' + Date.now().toString() await fs.writeFile(tempPath, content, 'utf8') await fs.writeFile(this.configPath + '.backup', content, 'utf8') await promisify(gracefulFS.rename)(tempPath, this.configPath)