From bcbe6c96192e7246f1ba08664df7dae182c12663 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Sat, 5 Oct 2024 03:53:51 +0100 Subject: [PATCH] updating current home dir --- src/main/events/cloud-save/download-game-artifact.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/events/cloud-save/download-game-artifact.ts b/src/main/events/cloud-save/download-game-artifact.ts index 289e5dec..adef7ce4 100644 --- a/src/main/events/cloud-save/download-game-artifact.ts +++ b/src/main/events/cloud-save/download-game-artifact.ts @@ -8,8 +8,6 @@ import path from "node:path"; import { backupsPath } from "@main/constants"; import type { GameShop } from "@types"; -import os from "node:os"; - import YAML from "yaml"; export interface LudusaviBackup { @@ -40,7 +38,7 @@ const replaceLudusaviBackupWithCurrentUser = ( fs.renameSync( path.join(usersDirPath, path.basename(backupHomeDir)), - path.join(usersDirPath, os.userInfo().username) + path.join(usersDirPath, path.basename(currentHomeDir)) ); const backups = manifest.backups.map((backup: LudusaviBackup) => {