diff --git a/gui/main.js b/gui/main.js index bad4debc8..36478eff9 100644 --- a/gui/main.js +++ b/gui/main.js @@ -71,8 +71,10 @@ if (!mainInstance && !process.env.COZY_DESKTOP_PROPERTY_BASED_TESTING) { app.exit() } -let desktop = new Desktop.App(process.env.COZY_DESKTOP_DIR) -sentry.setup(desktop.clientInfo()) +const desktop = new Desktop.App(process.env.COZY_DESKTOP_DIR) +if (desktop.config.cozyUrl) { + sentry.setup(desktop.clientInfo()) +} let diskTimeout = null let onboardingWindow = null @@ -650,6 +652,7 @@ app.on('ready', async () => { log.trace('Setting up onboarding WM...') onboardingWindow = new OnboardingWM(app, desktop) onboardingWindow.onOnboardingDone(async () => { + sentry.setup(desktop.clientInfo()) await setupDesktop() onboardingWindow.hide() await trayWindow.show()