Fix by adding `--disable-systray`argument

This commit is contained in:
Aurélien Hamy 2022-05-01 17:10:40 +02:00
parent 337922c687
commit 0faf1ea482
1 changed files with 4 additions and 1 deletions
patches

View File

@ -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",