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;