gpg: Force --no-textmode in case the user has it turned on in config.

This commit is contained in:
Joey Hess 2013-09-07 13:06:36 -04:00
parent 01d857824d
commit 0a2f5f3993
3 changed files with 8 additions and 1 deletions

View file

@ -59,7 +59,11 @@ stdParams params = do
{- Usual options for symmetric / public-key encryption. -}
stdEncryptionParams :: Bool -> [CommandParam]
stdEncryptionParams symmetric = [enc symmetric, Param "--force-mdc"]
stdEncryptionParams symmetric =
[ enc symmetric
, Param "--force-mdc"
, Param "--no-textmode"
]
where
enc True = Param "--symmetric"
-- Force gpg to only encrypt to the specified recipients, not