diff --git a/src/common/gajim.py b/src/common/gajim.py index 285ae7b58..5b56093b6 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -156,8 +156,12 @@ try: except ImportError: HAVE_GPG = False else: - from os import system - if system('gpg -h >/dev/null 2>&1'): + import os + if os.name == 'nt': + gpg_cmd = 'gpg -h >null 2>&1' + else: + gpg_cmd = 'gpg -h >/dev/null 2>&1' + if os.system(gpg_cmd): HAVE_GPG = False # Depends on use_latex option. Will be correctly set after we config options are