From ebbb89d95560d0b159ea861b38266a9e598ec2dd Mon Sep 17 00:00:00 2001 From: Jack Amadeo Date: Fri, 3 Apr 2026 10:42:34 -0400 Subject: [PATCH] keep the import, just handle undefined --- ui/desktop/src/distro.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ui/desktop/src/distro.ts b/ui/desktop/src/distro.ts index 448364d1d4..53dc9127f0 100644 --- a/ui/desktop/src/distro.ts +++ b/ui/desktop/src/distro.ts @@ -1,12 +1,6 @@ import * as fs from 'fs'; import * as path from 'path'; - -let app: Electron.App | undefined; -try { - app = require('electron').app; -} catch { - // Not running inside Electron (e.g. tests importing goosed.ts) -} +import { app } from 'electron'; interface DistroConfig { env?: Record;