diff --git a/src/app/window-utils.ts b/src/app/window-utils.ts index d0288476..454e0516 100644 --- a/src/app/window-utils.ts +++ b/src/app/window-utils.ts @@ -358,7 +358,10 @@ export const downloadManagerAction = (type, filePath): void => { } if (type === 'open') { - const openResponse = electron.shell.openItem(`${filePath}`); + let openResponse = fs.existsSync(`${filePath}`); + if (openResponse) { + openResponse = electron.shell.openItem(`${filePath}`); + } if (!openResponse && focusedWindow && !focusedWindow.isDestroyed()) { electron.dialog.showMessageBox(focusedWindow, { message,