-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop litering .lg_history
in current directory.
#1443
Comments
There is a function
However, it seems this is a comment rot since the code seem to support Windows (and 54f6723 says I tested it). |
Cool, thanks, I'll trying hacking that up, unless you want to do it. |
Please do it, because I'm preparing yet some other PRs just now. |
Fixed, in #1446 for Linux only. I'm leaving this open, for Windows and Apple. Should be easy; just .. different #defines, right? |
Resolves issue opencog#1443
Closing because resolved in #1447. |
Closed wrong issue. |
See comments in #1446 for current status |
I have just submitted PR #1534 - XDG-base-directory implementation that has per-dict history. |
Currently, this line:
link-grammar/link-parser/lg_readline.c
Line 375 in af7033e
causes the
.lg_history
file to be written in the current working directory, resulting in LG litter everywhere. It's getting annoying. It should be changed to either~/.lg_history
or to~/.cache/link-grammar/lg_history
I tried changing it to
~/.lg_history
but that did not work. Seems thathistory_w(hist, &ev, H_LOAD, HFILE);
does not know what to do with the tilde. And, at any rate, this won't work in windows, anyway. So I'm opening this bug report instead ...The text was updated successfully, but these errors were encountered: