From 476e3af759759d3b1cb2d14b77f6abf2260dded0 Mon Sep 17 00:00:00 2001 From: Aristotelis Date: Wed, 18 Jan 2023 13:24:59 +0100 Subject: [PATCH] Bump Linux theme refresh timer back up to 5 minutes (#2331) On Linux distributions that do not yet support org.freedesktop.appearance.color-scheme (most distros released prior to 2022), querying DBus for the missing property produces verbose journal entries over Anki's entire runtime. --- qt/aqt/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 0359ac1bb..260fa7ba0 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -1074,8 +1074,10 @@ title="{}" {}>{}""".format( theme_manager.apply_style() if is_lin: # On Linux, the check requires invoking an external binary, + # and can potentially produce verbose logs on systems where + # the preferred theme cannot be determined, # which we don't want to be doing frequently - interval_secs = 5 + interval_secs = 300 else: interval_secs = 2 self.progress.timer(