change emojidir to ~/.cache/shmoji

The rationale is `.cache` seems better suited for a file that's not meant to
be ever edited but merely downloaded from a source as a reference file.
Like `.local/share`, `.cache` is defined by Freedesktop XDG Base Directory
Specification. The environment variable should be `$XDG_CACHE_HOME`.
This commit is contained in:
hydrargyrum 2022-10-06 20:52:26 +02:00 committed by j3s
parent a0e8854a04
commit 6f9016ca68

2
shmoji
View file

@ -11,7 +11,7 @@
set -e
cmd="$1"
emojidir="$HOME/.local/share/shmoji"
emojidir="$HOME/.cache/shmoji"
emojifile="$emojidir/emojis.txt"
die() {