opnsense-ports/devel/electron32/files/patch-electron_lib_browser_init.ts
Franco Fichtner aca4f92396 */*: sync with upstream
Taken from: FreeBSD
2024-10-21 14:34:57 +02:00

11 lines
539 B
TypeScript

--- electron/lib/browser/init.ts.orig 2024-10-09 13:53:06 UTC
+++ electron/lib/browser/init.ts
@@ -162,7 +162,7 @@ function currentPlatformSupportsAppIndicator () {
const KNOWN_XDG_DESKTOP_VALUES = new Set(['Pantheon', 'Unity:Unity7', 'pop:GNOME']);
function currentPlatformSupportsAppIndicator () {
- if (process.platform !== 'linux') return false;
+ if (process.platform !== 'linux' && process.platform !== 'freebsd') return false;
const currentDesktop = process.env.XDG_CURRENT_DESKTOP;
if (!currentDesktop) return false;