blob: 9d1a3d05aba784def59ea738b7c9fe7138d2b942 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 4dbe17674fef2f48b638cd4dc164b66042d03213 Mon Sep 17 00:00:00 2001
From: josselinonduty <contact@josselinonduty.fr>
Date: Mon, 21 Apr 2025 00:50:26 +0900
Subject: [PATCH] fix: reduce to systray on close with respect to execution
option
---
diff --git a/build/main.js b/build/main.js
index 8bbfa01..415cd2b 100644
--- a/build/main.js
+++ b/build/main.js
@@ -3055,7 +3055,10 @@
this._adjustViewToContentSize(),
mainView.setAutoResize({ width: !0, height: !0 }));
} else this.appService.setWindow(this.window, void 0);
- if ((this.appService.setUserAgent(), isPlatform(PLATFORM.DARWIN))) {
+ if (
+ (this.appService.setUserAgent(), isPlatform(PLATFORM.LINUX)) &&
+ !process.argv.some((arg) => arg === "--disable-systray")
+ ) {
let isQuitting = !1;
(external_electron_namespaceObject.app.on(
"before-quit",
|