ports/devel/electron32/files/patch-electron_lib_browser_init.ts
2024-10-18 05:00:08 +09: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;