From 6659d40b2b00c18b42980f71643c343c0b5f42f2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 29 Apr 2024 08:19:22 +0200 Subject: silence qt `Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'` --- bulk-audio/bulk-audio.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bulk-audio/bulk-audio.py b/bulk-audio/bulk-audio.py index c0b8055..3507c7e 100755 --- a/bulk-audio/bulk-audio.py +++ b/bulk-audio/bulk-audio.py @@ -16,6 +16,11 @@ class TrashFileIO(object): def flush(self): pass trash_out = TrashFileIO() +# replace stderr file descriptor with /dev/null +os.dup2(os.open(os.devnull, os.O_WRONLY), 2) +# this is the lowest level hack i could find that silences QT errors for +# subprocesses too + sys.stdout = trash_out import aqt sys.stdout = real_stdout -- cgit v1.2.3