From ae3daa4c7966c7aba46b2d0cedcc22e90e1d69a0 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:52:25 -0300 Subject: [PATCH] fix: remove symbols from name before creating game shortcut --- src/main/events/library/create-game-shortcut.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/events/library/create-game-shortcut.ts b/src/main/events/library/create-game-shortcut.ts index 30dfbf7c..a27317f0 100644 --- a/src/main/events/library/create-game-shortcut.ts +++ b/src/main/events/library/create-game-shortcut.ts @@ -4,6 +4,7 @@ import { IsNull, Not } from "typeorm"; import createDesktopShortcut from "create-desktop-shortcuts"; import path from "node:path"; import { app } from "electron"; +import { removeSymbolsFromName } from "@shared"; const createGameShortcut = async ( _event: Electron.IpcMainInvokeEvent, @@ -22,7 +23,7 @@ const createGameShortcut = async ( const options = { filePath, - name: game.title, + name: removeSymbolsFromName(game.title), }; return createDesktopShortcut({