mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-08 00:17:51 +00:00
fix: missing screen share thumbnails in desktop (#8135)
Some checks are pending
CI / uitest-qms (push) Waiting to run
CI / build (push) Waiting to run
CI / uitest-workspaces (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Some checks are pending
CI / uitest-qms (push) Waiting to run
CI / build (push) Waiting to run
CI / uitest-workspaces (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
885e20e8de
commit
c0aabddaac
@ -76,6 +76,16 @@ if (require('electron-squirrel-startup') === true) {
|
|||||||
|
|
||||||
console.log('Running Huly', process.env.MODEL_VERSION, process.env.VERSION, isMac, isDev, process.env.NODE_ENV)
|
console.log('Running Huly', process.env.MODEL_VERSION, process.env.VERSION, isMac, isDev, process.env.NODE_ENV)
|
||||||
|
|
||||||
|
// Fix screen-sharing thumbnails being missing sometimes
|
||||||
|
// See https://github.com/electron/electron/issues/44504
|
||||||
|
const disabledFeatures = [
|
||||||
|
'ThumbnailCapturerMac:capture_mode/sc_screenshot_manager',
|
||||||
|
'ScreenCaptureKitPickerScreen',
|
||||||
|
'ScreenCaptureKitStreamPickerSonoma'
|
||||||
|
]
|
||||||
|
|
||||||
|
app.commandLine.appendSwitch('disable-features', disabledFeatures.join(','))
|
||||||
|
|
||||||
function hookOpenWindow (window: BrowserWindow): void {
|
function hookOpenWindow (window: BrowserWindow): void {
|
||||||
window.webContents.setWindowOpenHandler(({ url }) => {
|
window.webContents.setWindowOpenHandler(({ url }) => {
|
||||||
console.log('opening window', url)
|
console.log('opening window', url)
|
||||||
|
Loading…
Reference in New Issue
Block a user