From 773b78790e93fef7327451faf818016e226dec4a Mon Sep 17 00:00:00 2001 From: Maurizio Pinotti Date: Wed, 25 Oct 2023 15:01:26 +0200 Subject: [PATCH 1/4] Upgrade electron to 27.0.2 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 55ce365..e16f6b8 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "yargs": "17.7.2" }, "devDependencies": { - "electron": "^27.0.0", + "electron": "27.0.2", "electron-builder": "24.6.4", "eslint": "8.51.0", "yarn": "1.22.19" diff --git a/yarn.lock b/yarn.lock index 86925fa..0c088ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -835,10 +835,10 @@ electron-window-state@5.0.3: jsonfile "^4.0.0" mkdirp "^0.5.1" -electron@^27.0.0: - version "27.0.0" - resolved "https://registry.yarnpkg.com/electron/-/electron-27.0.0.tgz#bb6c45881e531b2ec1c7cc46c47aba773f38ee14" - integrity sha512-mr3Zoy82l8XKK/TgguE5FeNeHZ9KHXIGIpUMjbjZWIREfAv+X2Q3vdX6RG0Pmi1K23AFAxANXQezIHBA2Eypwg== +electron@27.0.2: + version "27.0.2" + resolved "https://registry.yarnpkg.com/electron/-/electron-27.0.2.tgz#5465475e4e5c4de7371dc06e1872b46265a340f0" + integrity sha512-4fbcHQ40ZDlqhr5Pamm+M5BF7ry2lGqjFTWTJ/mrBwuiPWu6xhV/RWgUhKBaLqKNfAaNl3eMxV3Jc82gv6JauQ== dependencies: "@electron/get" "^2.0.0" "@types/node" "^18.11.18" From 38731f2999714963cf7ef5a774ef0745825c3364 Mon Sep 17 00:00:00 2001 From: Maurizio Pinotti Date: Wed, 25 Oct 2023 15:01:46 +0200 Subject: [PATCH 2/4] Fix #981: add option to disable GPU --- app/config/README.md | 1 + app/config/index.js | 5 +++++ app/index.js | 10 ++++++++++ 3 files changed, 16 insertions(+) diff --git a/app/config/README.md b/app/config/README.md index bfe890b..fc50990 100644 --- a/app/config/README.md +++ b/app/config/README.md @@ -33,6 +33,7 @@ Here is the list of available arguments and its usage: | config | config file location | ~/.config/teams-for-linux/config.json | | defaultURLHandler | Default application to be used to open the HTTP URLs | | | disableAutogain | A flag indicates whether to disable mic auto gain or not | false | +| disableGpu | A flag to disable GPU and hardware acceleration (can be useful if the window remains blank) | false | | disableMeetingNotifications | Whether to disable meeting notifications or not | false | | disableNotifications | A flag to disable all notifications | false | | disableNotificationSound | Disable chat/meeting start notification sound | false | diff --git a/app/config/index.js b/app/config/index.js index 1fcfafa..d449de9 100644 --- a/app/config/index.js +++ b/app/config/index.js @@ -136,6 +136,11 @@ function argv(configPath) { describe: 'A flag indicates whether to disable mic auto gain or not', type: 'boolean' }, + disableGpu: { + default: false, + describe: 'A flag to disable GPU and hardware acceleration (can be useful if the window remains blank)', + type: 'boolean' + }, disableMeetingNotifications: { default: false, describe: 'Whether to disable meeting notifications or not', diff --git a/app/index.js b/app/index.js index d0dc4e8..537080b 100644 --- a/app/index.js +++ b/app/index.js @@ -76,6 +76,16 @@ if (!app.isDefaultProtocolClient(protocolClient, process.execPath)) { app.allowRendererProcessReuse = false; +if (config.disableGpu) { + logger.info('Disabling GPU support...'); + app.commandLine.appendSwitch('disable-gpu'); + app.commandLine.appendSwitch('disable-software-rasterizer'); + // app.commandLine.appendSwitch('disable-gpu-compositing'); + // app.commandLine.appendSwitch('disable-gpu-rasterization'); + // app.commandLine.appendSwitch('disable-gpu-sandbox'); + // app.disableHardwareAcceleration(); +} + if (!gotTheLock) { logger.info('App already running'); app.quit(); From e0da762fce2a950d2aa05025a80bc2823022f287 Mon Sep 17 00:00:00 2001 From: Maurizio Pinotti Date: Wed, 25 Oct 2023 15:06:12 +0200 Subject: [PATCH 3/4] Version bump 1.3.16 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e16f6b8..45fcda0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "teams-for-linux", - "version": "1.3.14", + "version": "1.3.16", "main": "app/index.js", "description": "Unofficial client for Microsoft Teams for Linux", "homepage": "https://github.com/IsmaelMartinez/teams-for-linux", From 4fbbf43b6c4f7b39491b302e34e862dc1da33a8f Mon Sep 17 00:00:00 2001 From: Maurizio Pinotti Date: Mon, 30 Oct 2023 09:47:51 +0100 Subject: [PATCH 4/4] Update appdata.xml --- com.github.IsmaelMartinez.teams_for_linux.appdata.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/com.github.IsmaelMartinez.teams_for_linux.appdata.xml b/com.github.IsmaelMartinez.teams_for_linux.appdata.xml index f2e2042..aa89321 100644 --- a/com.github.IsmaelMartinez.teams_for_linux.appdata.xml +++ b/com.github.IsmaelMartinez.teams_for_linux.appdata.xml @@ -14,6 +14,14 @@ https://github.com/IsmaelMartinez/teams-for-linux/issues com.github.IsmaelMartinez.teams_for_linux.desktop + + +
    +
  • New: add flag --disableGpu to disable GPU and hardware acceleration
  • +
  • Update: Electron version upgraded to 27.0.2
  • +
+
+