From 5e8abf8765831a2bde96ffc4c5107b4184fcbee8 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Wed, 12 Mar 2025 12:09:35 +0100 Subject: [PATCH] Add explicit check for registered application --- backend/ipc.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/ipc.js b/backend/ipc.js index 1e0ee53..0716d17 100644 --- a/backend/ipc.js +++ b/backend/ipc.js @@ -142,6 +142,11 @@ module.exports = function registerIPCHandlers(win, ipcMain, app, dialog) { ipcMain.handle('launch-app', async (event, urlScheme) => { // Launch an external app with a custom protocol return new Promise((resolve, reject) => { + if(app.getApplicationNameForProtocol(urlScheme) === '') { + resolve(false); // App not installed + return; + } + try { shell.openExternal(urlScheme).then(() => { resolve(true); // App opened successfully pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy