diff --git a/src/common/gajim.py b/src/common/gajim.py index d2739547197efb0a3fac74cc056ff9cf83485f69..ac05c88e9f90ff5d799baa66b6ef05e1cc4d859f 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -157,11 +157,12 @@ except ImportError: HAVE_GPG = False else: import os + import subprocess if os.name == 'nt': gpg_cmd = 'gpg -h >nul 2>&1' else: gpg_cmd = 'gpg -h >/dev/null 2>&1' - if os.system(gpg_cmd): + if subprocess.call(gpg_cmd, shell=True): HAVE_GPG = False # Depends on use_latex option. Will be correctly set after we config options are