EasyGnuPG / egpg

Easy GnuPG, shell scripts to make GnuPG more accessible and easier to use. (Migrated to: https://gitlab.com/EasyGnuPG/egpg)
GNU General Public License v3.0
26 stars 5 forks source link

support XDG_CONFIG_HOME #60

Closed emorrp1 closed 6 years ago

emorrp1 commented 6 years ago

Just a request to essentially use ~/.config/egpg rather than ~/.egpg by default. GPG is obviously unlikely to switch for backwards compatibility, but egpg is a new tool, so would be nice to not clutter the user's HOME.

[ -n "$XDG_CONFIG_HOME" ] || XDG_CONFIG_HOME="$HOME/.config"
EGPG_DIR=$XDG_CONFIG_HOME/egpg

https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html

dashohoxha commented 6 years ago

It makes sense not to clutter the user's HOME.

However .gnupg does not contain only configuration files, it also contains data files (keyring), runtime files (gpg-agent sockets), maybe cache files, etc. EGPG contains a copy of .gnupg inside it, so it contains all these kinds of files, not just config files.

It also makes sense to keep all the files of a certain program/application in the same place, instead of scattering them in separate directories. In this regard the XDG standard is not suitable. I would even say that the XDG standard is already outdated. We live in the time of apps, where each app tries to be as self contained and isolated from the rest of the host system as possible.

Is there any standard that supports this philosophy of self-containment of the apps?