From ef715c38d754bbed026a4e6c3e9cae0180eeeb4b Mon Sep 17 00:00:00 2001 From: josselinonduty Date: Sun, 19 Jan 2025 23:27:32 +0100 Subject: [PATCH] fix: reduce to systray on close with respect to execution option --- build/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/main.js b/build/main.js index 60117e3..9ea7c18 100644 --- a/build/main.js +++ b/build/main.js @@ -3037,7 +3037,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", -- 2.43.0