mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
updating current home dir
This commit is contained in:
parent
0873c8e244
commit
bcbe6c9619
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user