summaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-28 15:56:14 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-28 15:57:48 +0100
commitfd429fd3a59b2f1b693bdc68d177e63c3254b822 (patch)
treee56165723cd0467ba5673a945187f0650c6e9373 /qutebrowser
parent0efdfd2f270ef34fa42808ffcb1e95dfd46b6049 (diff)
downloadqutebrowser-fd429fd3a59b2f1b693bdc68d177e63c3254b822.tar.gz
qutebrowser-fd429fd3a59b2f1b693bdc68d177e63c3254b822.zip
Add a warning if QTWEBENGINE_CHROMIUM_FLAGS is set
See #6065 (cherry picked from commit 38fec3726fc0aa518a3637574f7e3e0029df41d4)
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/config/qtargs.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/qutebrowser/config/qtargs.py b/qutebrowser/config/qtargs.py
index 6058931b3..415a76f25 100644
--- a/qutebrowser/config/qtargs.py
+++ b/qutebrowser/config/qtargs.py
@@ -26,7 +26,7 @@ from typing import Any, Dict, Iterator, List, Optional, Sequence, Tuple
from qutebrowser.config import config
from qutebrowser.misc import objects
-from qutebrowser.utils import usertypes, qtutils, utils
+from qutebrowser.utils import usertypes, qtutils, utils, log
_ENABLE_FEATURES = '--enable-features='
@@ -266,6 +266,15 @@ def init_envvars() -> None:
os.environ['QT_QUICK_BACKEND'] = 'software'
elif software_rendering == 'chromium':
os.environ['QT_WEBENGINE_DISABLE_NOUVEAU_WORKAROUND'] = '1'
+
+ qtwe_flags_var = 'QTWEBENGINE_CHROMIUM_FLAGS'
+ qtwe_flags = os.environ.get(qtwe_flags_var)
+ if qtwe_flags is not None:
+ log.init.warning(
+ f"You have {qtwe_flags_var}={qtwe_flags!r} set in your environment. "
+ "This is currently unsupported and interferes with qutebrowser's own "
+ "flag handling (including workarounds for certain crashes). "
+ "Consider using the qt.args qutebrowser setting instead.")
else:
assert objects.backend == usertypes.Backend.QtWebKit, objects.backend