From c2aac6d2e1bae579b5a4e2e940c25a0ad8fa0043 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 4 Sep 2017 15:36:41 -0300 Subject: [PATCH] Fixed bug displaying appId in Notifications --- electron/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electron/main.js b/electron/main.js index 1ebf94ed..92fc37fc 100644 --- a/electron/main.js +++ b/electron/main.js @@ -47,7 +47,9 @@ if (config.get('enable_hidpi_support') && (process.platform === 'win32')) { app.commandLine.appendSwitch('force-device-scale-factor', '1') } -app.setAppUserModelId('com.saenzramiro.rambox'); +// Because we build it using Squirrel, it will assign UserModelId automatically, so we match it here to display notifications correctly. +// https://github.com/electron-userland/electron-builder/issues/362 +app.setAppUserModelId('com.squirrel.Rambox.Rambox'); // Menu const appMenu = require('./menu')(config);