mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
fix(electron): use display name for Linux notifications (#8640)
This commit is contained in:
parent
1a13bef5e7
commit
c5fa02561e
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue