diff options
Diffstat (limited to '.config/qutebrowser')
-rwxr-xr-x | .config/qutebrowser/config.py | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 13dca3f..776face 100755 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -19,18 +19,8 @@ except NameError: config = None -def select_rendering_method(): - """ - Select best rendering method depending on hardware and system. - """ - method = 'none' - - if platform.uname().system in 'Linux': - lspci_bin = subprocess.run(['lspci'], stdout=subprocess.PIPE) - if re.search('NVIDIA', lspci_bin.stdout.decode('utf-8')) is None: - method = 'qt-quick' - - return method +def is_musl_system(): + return bool(re.search('musl', os.popen("ldd /bin/ls").read())) def select_qt_arguments(): @@ -39,9 +29,8 @@ def select_qt_arguments(): Empty by default, it picks lag free options for musl systems. """ args = [] - ls_bin = os.popen("ldd /bin/ls").read() - if re.search('musl', ls_bin) is not None: + if is_musl_system(): args.append('disable-seccomp-filter-sandbox') return args @@ -51,7 +40,7 @@ config.load_autoconfig(False) config.set('auto_save.session', True) config.set('scrolling.smooth', False) config.set('qt.highdpi', False) -config.set('qt.force_software_rendering', select_rendering_method()) +config.set('qt.force_software_rendering', 'none') config.set('qt.args', select_qt_arguments()) config.bind(',m', 'spawn mpv {url}') |