mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
updating current home dir
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user