fix(voice): stop screen shares failing to reach their viewers (#2835)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-19 02:17:25 +02:00
1 parent f32356801d
commit bc47a724af
119 files changed
+27942 -12524

No files matched your search

+4 -7
View File
@@ -43,6 +43,7 @@ import {
formatDesktopDebugInfo,
getDesktopDebugInfo,
getLaunchAppUrlOverride,
getLaunchDesktopTroubleshootingSettings,
getLaunchNetLogPath,
hasDesktopDebugInfoArg,
logDesktopDebugInfo,
@@ -173,17 +174,13 @@ if (launchConfigurationError) {
if (shouldResetWindowStateOnLaunch(process.argv)) {
clearSavedWindowBounds();
}
const disableHardwareAccelerationRequested =
shouldDisableHardwareAccelerationForLaunch(process.argv) ||
getDesktopTroubleshootingSettings().disableHardwareAcceleration;
if (process.platform !== 'darwin' && disableHardwareAccelerationRequested) {
const disableHardwareAcceleration = getLaunchDesktopTroubleshootingSettings().disableHardwareAcceleration;
if (disableHardwareAcceleration) {
app.disableHardwareAcceleration();
log.info('Hardware acceleration disabled for this launch', {
commandLine: shouldDisableHardwareAccelerationForLaunch(process.argv),
persistentSetting: getDesktopTroubleshootingSettings().disableHardwareAcceleration,
});
} else if (process.platform === 'darwin' && disableHardwareAccelerationRequested) {
log.info('Hardware acceleration disable request ignored on macOS');
}
log.info('Launch diagnostic modes', launchDiagnosticOptions);
const CHANNEL_APP_NAME = DESKTOP_APP_NAME;
@@ -264,7 +261,7 @@ if (launchConfigurationError) {
}
const disabledChromiumFeatures = new Set(BASE_DISABLED_CHROMIUM_FEATURES);
const enabledChromiumFeatures = new Set<string>();
if (!disableHardwareAccelerationRequested) {
if (!disableHardwareAcceleration) {
addLinuxHardwareVideoEncodeFeatures(enabledChromiumFeatures);
addWindowsHardwareVideoEncodeFeatures(enabledChromiumFeatures);
}