cgmnlm

colorful gemini line mode browser
git clone https://git.clttr.info/cgmnlm.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 0eaf9cc109a99d6efb0d9c763291f6a5d9e74391
parent 8bb1d81f539f1e223e8fcd79e2d18f58e3c9d28f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 26 Sep 2020 13:13:41 -0400

TOFU: use ~/.local/share/gemini/known_hosts

The rest of gmni's stuff will remain in ~/.local/share/gmni, but in
order to establish a common location and format for the TOFU file
between Gemini implementations, a more general path is required.

Diffstat:
Msrc/tofu.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tofu.c b/src/tofu.c @@ -147,8 +147,8 @@ gemini_tofu_init(struct gemini_tofu *tofu, { const struct pathspec paths[] = { {.var = "GMNIDATA", .path = "/%s"}, - {.var = "XDG_DATA_HOME", .path = "/gmni/%s"}, - {.var = "HOME", .path = "/.local/share/gmni/%s"} + {.var = "XDG_DATA_HOME", .path = "/gemini/%s"}, + {.var = "HOME", .path = "/.local/share/gemini/%s"} }; char *path_fmt = getpath(paths, sizeof(paths) / sizeof(paths[0])); snprintf(tofu->known_hosts_path, sizeof(tofu->known_hosts_path),