From 633bbc16f4df3fd5cd9690d83f3d71df2b898848 Mon Sep 17 00:00:00 2001 From: axunonb Date: Sat, 31 Aug 2024 15:37:51 +0200 Subject: [PATCH] Add link to Chromium browser command lline switches --- League/Caching/ReportSheetCache.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/League/Caching/ReportSheetCache.cs b/League/Caching/ReportSheetCache.cs index 5c802e9..38c81db 100644 --- a/League/Caching/ReportSheetCache.cs +++ b/League/Caching/ReportSheetCache.cs @@ -174,6 +174,7 @@ private async Task CreateReportSheetPdfChromium(string tempFolder, strin // Run Chromium // Command line switches overview: https://kapeli.com/cheat_sheets/Chromium_Command_Line_Switches.docset/Contents/Resources/Documents/index + // or better https://peter.sh/experiments/chromium-command-line-switches/ var startInfo = new System.Diagnostics.ProcessStartInfo(_pathToChromium, $"--allow-pre-commit-input --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=Translate,BackForwardCache,AcceptCHFrame,MediaRouter,OptimizationHints --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --enable-automation --enable-blink-features=IdleDetection --enable-features=NetworkServiceInProcess2 --export-tagged-pdf --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --headless --hide-scrollbars --mute-audio --no-sandbox --disable-gpu --use-cmd-decoder=passthrough --no-margins --user-data-dir={tempFolder} --no-pdf-header-footer --print-to-pdf={pdfFile} {htmlUri}") { CreateNoWindow = true, UseShellExecute = false };