diff --git a/src/common/gajim.py b/src/common/gajim.py index a8e6618fe..3c33d69af 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -182,8 +182,9 @@ else: if system('gpg -h >/dev/null 2>&1'): HAVE_GPG = False -import latex -HAVE_LATEX = config.get('use_latex') and latex.check_for_latex_support() +# Depends on use_latex option. Will be correctly set after we config options are +# read. +HAVE_LATEX = False HAVE_INDICATOR = True try: diff --git a/src/gui_interface.py b/src/gui_interface.py index c8f53fbff..a500f939f 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -3198,6 +3198,11 @@ class Interface: } cfg_was_read = parser.read() + + from common import latex + gajim.HAVE_LATEX = gajim.config.get('use_latex') and \ + latex.check_for_latex_support() + gajim.logger.reset_shown_unread_messages() # override logging settings from config (don't take care of '-q' option) if gajim.config.get('verbose'):