avoid gui dialog when dealing with gnupg