summaryrefslogtreecommitdiff
path: root/shroud
diff options
context:
space:
mode:
Diffstat (limited to 'shroud')
-rw-r--r--shroud/ui.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/shroud/ui.scm b/shroud/ui.scm
index ab78010..31c66fa 100644
--- a/shroud/ui.scm
+++ b/shroud/ui.scm
@@ -115,12 +115,14 @@ ARGS is the list of arguments received by the 'throw' handler."
(report-load-error file args))))
(define %default-config
- `((database-file . ,(string-append (getenv "HOME") "/.config/shroud/db.gpg"))
+ `((database-file . ,(or (getenv "SHROUD_DATABASE_FILE")
+ (string-append (getenv "HOME") "/.config/shroud/db.gpg")))
(gpg-binary . ,%gpg)))
(define (load-config)
"Load and evaluate user configuration file."
- (let ((config (append (load* (string-append (getenv "HOME") "/.shroud")
+ (let ((config (append (load* (or (getenv "SHROUD_CONFIG_FILE")
+ (string-append (getenv "HOME") "/.shroud"))
(make-user-module '((shroud config))))
%default-config)))