ports/devel/electron35/files/patch-electron_lib_browser_init.ts
Hiroki Tagato 3fe2f64857 devel/electron35: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.

It's easier than you think.

If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.

WWW: https://electronjs.org/
2025-04-08 21:01:02 +09:00

11 lines
539 B
TypeScript

--- electron/lib/browser/init.ts.orig 2025-04-04 05:26:44 UTC
+++ electron/lib/browser/init.ts
@@ -165,7 +165,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;