From 8ca3e4249a93ecce0b1f11718d0cc2f936160966 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Fri, 12 Sep 2025 14:29:19 +0200 Subject: [PATCH] fix loading by url from packaged app, still need to test linux and add back in ephemeral proxying --- main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 22d131e..b9b29ce 100644 --- a/main.js +++ b/main.js @@ -206,8 +206,11 @@ const initTempProfile = () => { const getAppPath = () => { const appPath = process.platform === 'win32' + // windows ? path.resolve('.', `${appName}.exe`) - : process.execPath.replace(/\.app.*$/, '.app'); + // mac / TODO: linux + : process.execPath; + //: process.execPath.replace(/\.app.*$/, '.app'); return appPath; }; @@ -304,7 +307,7 @@ app.whenReady().then(() => { console.error('Bad URL'); } else { - openEphemeral(url); + openURL(url); } } else -- 2.51.2