feat: add custom_flags --default-background-color
This commit is contained in:
@@ -313,22 +313,23 @@ class HTMLFrameGenerator:
|
|||||||
if self.hti is None:
|
if self.hti is None:
|
||||||
# Configure Chrome flags for Linux headless environment
|
# Configure Chrome flags for Linux headless environment
|
||||||
custom_flags = [
|
custom_flags = [
|
||||||
# '--no-sandbox', # Bypass AppArmor/sandbox restrictions
|
'--default-background-color=00000000',
|
||||||
# '--disable-dev-shm-usage', # Avoid shared memory issues
|
'--no-sandbox', # Bypass AppArmor/sandbox restrictions
|
||||||
# '--disable-gpu', # Disable GPU acceleration
|
'--disable-dev-shm-usage', # Avoid shared memory issues
|
||||||
# '--disable-software-rasterizer', # Disable software rasterizer
|
'--disable-gpu', # Disable GPU acceleration
|
||||||
# '--disable-extensions', # Disable extensions
|
'--disable-software-rasterizer', # Disable software rasterizer
|
||||||
# '--disable-setuid-sandbox', # Additional sandbox bypass
|
'--disable-extensions', # Disable extensions
|
||||||
# '--disable-dbus', # Disable DBus to avoid permission errors
|
'--disable-setuid-sandbox', # Additional sandbox bypass
|
||||||
# '--hide-scrollbars', # Hide scrollbars for cleaner output
|
'--disable-dbus', # Disable DBus to avoid permission errors
|
||||||
# '--mute-audio', # Mute audio
|
'--hide-scrollbars', # Hide scrollbars for cleaner output
|
||||||
# '--disable-background-networking', # Disable background networking
|
'--mute-audio', # Mute audio
|
||||||
# '--disable-features=TranslateUI', # Disable translate UI
|
'--disable-background-networking', # Disable background networking
|
||||||
# '--disable-ipc-flooding-protection', # Improve performance
|
'--disable-features=TranslateUI', # Disable translate UI
|
||||||
# '--no-first-run', # Skip first run dialogs
|
'--disable-ipc-flooding-protection', # Improve performance
|
||||||
# '--no-default-browser-check', # Skip default browser check
|
'--no-first-run', # Skip first run dialogs
|
||||||
# '--disable-backgrounding-occluded-windows', # Improve performance
|
'--no-default-browser-check', # Skip default browser check
|
||||||
# '--disable-renderer-backgrounding', # Improve performance
|
'--disable-backgrounding-occluded-windows', # Improve performance
|
||||||
|
'--disable-renderer-backgrounding', # Improve performance
|
||||||
]
|
]
|
||||||
|
|
||||||
# Try to find non-snap browser
|
# Try to find non-snap browser
|
||||||
|
|||||||
Reference in New Issue
Block a user