From 0faf1ea4823c4f9fae51ec2564000aa577b7a5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Hamy?= Date: Sun, 1 May 2022 17:10:40 +0200 Subject: [PATCH] Fix #18 by adding `--disable-systray`argument --- patches/quit.patch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patches/quit.patch b/patches/quit.patch index d6fe0c2..e94041c 100644 --- a/patches/quit.patch +++ b/patches/quit.patch @@ -7,7 +7,10 @@ index 5066eef..46b04c5 100644 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))) { ++ if ( ++ (this.appService.setUserAgent(), isPlatform(PLATFORM.LINUX)) ++ && !process.argv.some(arg => arg === '--disable-systray') ++ ) { let isQuitting = !1; external_electron_namespaceObject.app.on( "before-quit", \ No newline at end of file