re-enable LATEX usage.

This commit is contained in:
Yann Leboulanger 2009-12-29 00:01:10 +01:00
parent dd35f9b58a
commit 1f69b98cac
2 changed files with 8 additions and 2 deletions

View File

@ -182,8 +182,9 @@ else:
if system('gpg -h >/dev/null 2>&1'): if system('gpg -h >/dev/null 2>&1'):
HAVE_GPG = False HAVE_GPG = False
import latex # Depends on use_latex option. Will be correctly set after we config options are
HAVE_LATEX = config.get('use_latex') and latex.check_for_latex_support() # read.
HAVE_LATEX = False
HAVE_INDICATOR = True HAVE_INDICATOR = True
try: try:

View File

@ -3198,6 +3198,11 @@ class Interface:
} }
cfg_was_read = parser.read() 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() gajim.logger.reset_shown_unread_messages()
# override logging settings from config (don't take care of '-q' option) # override logging settings from config (don't take care of '-q' option)
if gajim.config.get('verbose'): if gajim.config.get('verbose'):