Fix ~/.local/share
This commit is contained in:
parent
60cc8f5b3d
commit
6b8ceccdab
2
ask.c
2
ask.c
@ -493,7 +493,7 @@ int main(int argc, char *argv[])
|
|||||||
char *xdg_data = getenv("XDG_DATA_HOME");
|
char *xdg_data = getenv("XDG_DATA_HOME");
|
||||||
if (xdg_data == NULL) {
|
if (xdg_data == NULL) {
|
||||||
strcpy(histpath, getenv("HOME"));
|
strcpy(histpath, getenv("HOME"));
|
||||||
strcat(histpath, "/.local/.share/ask/");
|
strcat(histpath, "/.local/share/ask/");
|
||||||
} else {
|
} else {
|
||||||
strcpy(histpath, xdg_data);
|
strcpy(histpath, xdg_data);
|
||||||
strcat(histpath, "/ask/");
|
strcat(histpath, "/ask/");
|
||||||
|
Loading…
Reference in New Issue
Block a user