From 53aabece0f1d465872ae8e9ff21b8c545f1e0566 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 18 May 2023 14:53:50 +0200 Subject: fix: remove unnecessary stuff and some more debugging to the Python version. --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..f1559cd --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +# Description + +Based on [this gist](https://gist.github.com/sardemff7/759cbf956bea20d382a6128c641d2746) +and [pinentry-rofi](https://github.com/plattfot/pinentry-rofi). Thank +you, Fredrik Salomonsson, for doing all the hard work. + +Simple +[pinentry](https://www.gnupg.org/related_software/pinentry/index.html) +gui using [rofi](https://github.com/davatorium/rofi). + +It\'s similar in functionality as the gist and the previous script, but +on the MicroOS, where I work now, it is essential to install as +few as possible additional software, so Guile is certainly too much. + +Then add it to your `~/.gnupg/gpg-agent.conf` + +On a distribution that is using systemd (here I\'m using Arch Linux as +an example) simply run: + +``` shell +echo "GUIX_LOCPATH=$GUIX_LOCPATH" +``` + +Copy that, then run: + +``` shell +systend --user edit gpg-agent.service +``` + +And add it in the `override.conf` + +``` conf +[Service] +Environment=GUIX_LOCPATH=%h/.guix-profile/lib/locale +``` + +On my system, `GUIX_LOCPATH` points to the default profile +i.e. `$HOME/.guix-profile/lib/locale`. `%h` in +systemd gives you the path to the home directory. This should be the +case for most people, but if your `GUIX_LOCPATH` points to +something different change the `override.conf` to reflect +that. + +# Gpg-agent + +To use `pinentry-rofi` with `gpg-agent`, you can +set it as the `pinentry-program` in the +`~/.gnupg/gpg-agent.conf`. Note that you need to use the full +path to the binary. + +For example for Arch Linux this would be: + +``` conf +pinentry-program /usr/bin/pinentry-rofi +``` + +And for guix: + +``` conf +pinentry-program /.guix-profile/bin/pinentry-rofi +``` + +Where `` is the full path to home for your user. + +Don\'t forget to restart `gpg-agent` for the changes to take +affect: + +``` shell +gpg-connect-agent reloadagent /bye +``` -- cgit