Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions gui/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down