mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 14:51:02 +00:00
feat: create SystemPath class to prevent Hydra not opening when some user folders are not correctly set on windows
This commit is contained in:
@@ -5,6 +5,7 @@ import { app } from "electron";
|
||||
import { removeSymbolsFromName } from "@shared";
|
||||
import { GameShop } from "@types";
|
||||
import { gamesSublevel, levelKeys } from "@main/level";
|
||||
import { SystemPath } from "@main/services/system-path";
|
||||
|
||||
const createGameShortcut = async (
|
||||
_event: Electron.IpcMainInvokeEvent,
|
||||
@@ -24,7 +25,7 @@ const createGameShortcut = async (
|
||||
const options = {
|
||||
filePath,
|
||||
name: removeSymbolsFromName(game.title),
|
||||
outputPath: app.getPath("desktop"),
|
||||
outputPath: SystemPath.getPath("desktop"),
|
||||
};
|
||||
|
||||
return createDesktopShortcut({
|
||||
|
||||
Reference in New Issue
Block a user