diff lisp/epg-config.el @ 111137:1b078a586243

Try to use "gpg2" if "gpg" isn't available. * epg-config.el (epg-gpg-program): Try to use "gpg2" if "gpg" executable is not available on the system (Bug#7268).
author Daiki Ueno <ueno@unixuser.org>
date Sun, 24 Oct 2010 12:12:17 +0900
parents 280c8ae2476d
children 417b1e4d63cd
line wrap: on
line diff
--- a/lisp/epg-config.el	Sat Oct 23 19:22:43 2010 -0700
+++ b/lisp/epg-config.el	Sun Oct 24 12:12:17 2010 +0900
@@ -37,7 +37,9 @@
   :version "23.1"
   :group 'data)
 
-(defcustom epg-gpg-program "gpg"
+(defcustom epg-gpg-program (or (executable-find "gpg")
+			       (executable-find "gpg2")
+			       "gpg")
   "The `gpg' executable."
   :group 'epg
   :type 'string)