diff --git a/ui/desktop/app/routes/scopes/scope/projects.js b/ui/desktop/app/routes/scopes/scope/projects.js index ff22149b7..d53b2ac23 100644 --- a/ui/desktop/app/routes/scopes/scope/projects.js +++ b/ui/desktop/app/routes/scopes/scope/projects.js @@ -130,6 +130,8 @@ export default class ScopesScopeProjectsRoute extends Route { }), { body: this.intl.t('notifications.connected-to-target.description'), + // This only has an effect on windows + requireInteraction: true, }, ).onclick = async () => { let orgScope = 'global'; diff --git a/ui/desktop/electron-app/src/index.js b/ui/desktop/electron-app/src/index.js index 1dce3fc3b..b8292260b 100644 --- a/ui/desktop/electron-app/src/index.js +++ b/ui/desktop/electron-app/src/index.js @@ -31,7 +31,7 @@ const clientDaemonManager = require('./services/client-daemon-manager'); const menu = require('./config/menu.js'); const appUpdater = require('./helpers/app-updater.js'); -const { isMac, isLinux } = require('./helpers/platform.js'); +const { isMac, isLinux, isWindows } = require('./helpers/platform.js'); const fixPath = require('./utils/fixPath'); const isDev = require('electron-is-dev'); @@ -65,6 +65,12 @@ log.transports.file.fileName = 'desktop-client.log'; // Set the max file size to 10MB log.transports.file.maxSize = 10485760; +if (isWindows()) { + // Set the app user model ID to the app name as it will display the ID + // in any notifications on windows unless a squirrel installation is used. + app.setAppUserModelId(app.name); +} + const createWindow = (partition, closeWindowCB) => { /** * Enable electron OS window frame/chrome for MacOS only.