From 0608b18d0a8116288c56ef8ad9b1ef2282e002d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Tue, 8 Oct 2024 02:10:09 -0300 Subject: [PATCH] Change flags for qtwebengine --- bigbashview/usr/lib/bbv/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bigbashview/usr/lib/bbv/main.py b/bigbashview/usr/lib/bbv/main.py index 80b9267..48a457a 100644 --- a/bigbashview/usr/lib/bbv/main.py +++ b/bigbashview/usr/lib/bbv/main.py @@ -272,12 +272,11 @@ def formatter(prog): flags = ('--disable-logging --no-sandbox --single-process --disable-gpu-sandbox --in-process-gpu ' '--autoplay-policy=no-user-gesture-required --disable-back-forward-cache --disable-breakpad ' - '--aggressive-cache-discard --disable-features=BackForwardCache,CacheCodeOnIdle,ConsumeCodeCacheOffThread') + '--aggressive-cache-discard --disable-features=BackForwardCache,CacheCodeOnIdle,ConsumeCodeCacheOffThread --disable-features=WebRtcAllowInputVolumeAdjustment') if args.gpu: flags += (' --enable-gpu-rasterization') else: - flags += (' --disable-webgl --disable-accelerated-video-decode --disable-accelerated-video-encode ' - '--num-raster-threads=0') + flags += (' --disable-webgl --disable-accelerated-video-decode --disable-accelerated-video-encode --num-raster-threads=0 --enable-low-end-device-mode') # Verifica se a variável de ambiente QTWEBENGINE_CHROMIUM_FLAGS está vazia ou não definida if not os.environ.get('QTWEBENGINE_CHROMIUM_FLAGS', ''):