summaryrefslogtreecommitdiff
path: root/shroud
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-09-28 21:36:53 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-09-28 21:36:53 -0400
commit51adb648e0528833a0b2d777ea0d9cf3afdce579 (patch)
tree9dd49773f5b8a3ab110059d18d2078ce8ccdb81b /shroud
parentcfc3914a542006ec12189a176e6347006171e653 (diff)
Detect GPG binary at configure time.v0.1.0
* configure.ac (GPG): New variable. * shroud/config.scm.in (%gpg): New variable. * shroud/ui.scm (%default-config): Use '%gpg' as default GPG binary.
Diffstat (limited to 'shroud')
-rw-r--r--shroud/config.scm.in3
-rw-r--r--shroud/ui.scm2
2 files changed, 4 insertions, 1 deletions
diff --git a/shroud/config.scm.in b/shroud/config.scm.in
index 00d6f39..815ed55 100644
--- a/shroud/config.scm.in
+++ b/shroud/config.scm.in
@@ -18,8 +18,11 @@
(define-module (shroud config)
#:export (%shroud-version
+ %gpg
%xclip))
(define %shroud-version "0.1")
+(define %gpg "@GPG@")
+
(define %xclip "@XCLIP@")
diff --git a/shroud/ui.scm b/shroud/ui.scm
index 75106c9..ab78010 100644
--- a/shroud/ui.scm
+++ b/shroud/ui.scm
@@ -116,7 +116,7 @@ ARGS is the list of arguments received by the 'throw' handler."
(define %default-config
`((database-file . ,(string-append (getenv "HOME") "/.config/shroud/db.gpg"))
- (gpg-binary . "gpg")))
+ (gpg-binary . ,%gpg)))
(define (load-config)
"Load and evaluate user configuration file."