fix(electron): use display name for Linux notifications (#8640)

This commit is contained in:
Voronchikhin Ivan 2026-06-30 15:01:01 +03:00 committed by GitHub
parent 1a13bef5e7
commit c5fa02561e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,7 @@ import { evaluateGpuStartupGuard } from './gpu-startup-guard';
import * as fs from 'fs';
const ICONS_FOLDER = __dirname + '/assets/icons/';
const APP_DISPLAY_NAME = 'Super Productivity';
const IS_MAC = process.platform === 'darwin';
// const DESKTOP_ENV = process.env.DESKTOP_SESSION;
// const IS_GNOME = DESKTOP_ENV === 'gnome' || DESKTOP_ENV === 'gnome-xorg';
@ -152,6 +153,14 @@ export const startApp = (): void => {
app.setAppLogsPath();
}
if (process.platform === 'linux') {
// Preserve the historical userData path based on package.json `name`, while
// exposing a human-readable app name to Linux desktop environments.
const userDataPath = app.getPath('userData');
app.setPath('userData', userDataPath);
app.setName(APP_DISPLAY_NAME);
}
// Defense-in-depth against GPU init failures on confined Linux packages
// (Snap Mesa ABI drift, missing DRI nodes under Flatpak, etc.) where the
// main process stays alive but the GPU process crashes at init and the