Created
July 16, 2015 13:27
-
-
Save robobenklein/8f7fc3763f95fa765928 to your computer and use it in GitHub Desktop.
Shell script to switch between Gnome Keyring and the original GPG Agent for handling GPG keys.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "The Gnome Keyring's GPG protocol is not complete." | |
echo "Choose wether to use the Gnome Agent or the GPG agent to manage the keys." | |
echo "[help] for more information." | |
read -p "Should we use [gnome] keyring agent or [gpg] agent? : " action | |
case $action in | |
gnome ) sudo dpkg-divert --rename --remove /etc/xdg/autostart/gnome-keyring-gpg.desktop && echo "Gnome Keyring GPG agent ENABLED.";; | |
gpg ) sudo dpkg-divert --local --rename --divert /etc/xdg/autostart/gnome-keyring-gpg.desktop-disable --add /etc/xdg/autostart/gnome-keyring-gpg.desktop && echo "Gnome Keyring GPG agent DISABLED.";; | |
help ) echo "Some versions of Gnome Keyring hijack the connection to GPG Agent (they intercept all the communication between gpg or gpgsm and gpg-agent) by setting the GPG_AGENT_INFO environment variable to point to the Gnome Keyring process. Gnome Keyring then filters all communication with gpg-agent. See http://wiki.gnupg.org/GnomeKeyring for more info why.";; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment