aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/pinentry-rofi.in
diff options
context:
space:
mode:
authorFredrik Salomonsson <plattfot@posteo.net>2021-01-31 11:51:59 -0800
committerFredrik Salomonsson <plattfot@posteo.net>2021-01-31 16:55:15 -0800
commitf70cb0343bbe64eb733a6a56ef071ed731d5f62a (patch)
tree4c9254afad015e3be2af51f1c5b925edb7c72fba /scripts/pinentry-rofi.in
parentccc8e77924e0def27340db05c969d94395a11707 (diff)
downloadpinentry-rofi-f70cb0343bbe64eb733a6a56ef071ed731d5f62a.tar.gz
Add logic for passing locale to rofi
Using the options `lc-ctype` and `lc-messages` to set the LC_ALL option that is then set in the environment when calling rofi. Having issues with rofi failing to set locale when using guix.
Diffstat (limited to 'scripts/pinentry-rofi.in')
-rw-r--r--scripts/pinentry-rofi.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/pinentry-rofi.in b/scripts/pinentry-rofi.in
index d7c0d16..84c2f9b 100644
--- a/scripts/pinentry-rofi.in
+++ b/scripts/pinentry-rofi.in
@@ -46,7 +46,9 @@
(let ((logfile (option-ref options 'log #f)))
(when logfile
(open-output-file
- (format #f "~a.~a" logfile (getpid))))))))
+ (format #f "~a.~a" logfile (getpid)))))
+ "C"
+ "C")))
(when (option-ref options 'help #f)
(format #t "\
Usage: ~a [OPTIONS]