From d7bcb936fee3f9d9f05672f28a71b95a92284a65 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 28 Dec 2012 01:57:05 +0100 Subject: [PATCH] no xclip => no clipboard --- cranspasswords.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cranspasswords.py b/cranspasswords.py index b162d2f..1e77aac 100755 --- a/cranspasswords.py +++ b/cranspasswords.py @@ -33,7 +33,8 @@ GPG_ARGS = { DEBUG = False VERB = False -CLIPBOARD = bool(os.getenv('DISPLAY')) # Par défaut, place-t-on le mdp dans le presse-papier ? +# Par défaut, place-t-on le mdp dans le presse-papier ? +CLIPBOARD = bool(os.getenv('DISPLAY')) and os.path.exists('/usr/bin/xclip') FORCED = False #Mode interactif qui demande confirmation NROLES = None # Droits à définir sur le fichier en édition SERVER = None