Skip to content
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

atom-wakatime does not respect WAKATIME_HOME #94

Closed
khaeru opened this issue Nov 17, 2019 · 0 comments · Fixed by #97
Closed

atom-wakatime does not respect WAKATIME_HOME #94

khaeru opened this issue Nov 17, 2019 · 0 comments · Fixed by #97

Comments

@khaeru
Copy link

khaeru commented Nov 17, 2019

  1. In working around Saving files causes whole system to lock up on Ubuntu #90, I set the WAKATIME_HOME environment variable to a directory like $HOME/.local/share/wakatime. At the same time, I moved .wakatime.cfg, .wakatime.db, .wakatime.log into this directory.
  2. When I next started Atom, I saw an error message that my API key was not found.
  3. In the Atom settings view, I re-entered my API key.
  4. I noticed the file $HOME/.wakatime.cfg was created, while $WAKATIME_HOME/.wakatime.cfg was not modified.

It seems that when atom-wakatime invokes the wakatime Python core, the latter correctly picks up WAKATIME_HOME, so that the .db and .log files are modified in the correct directory. But the Atom plugin reads and writes the .cfg file in the wrong place. Searching the code in this repo shows that the environment variable is not used.

For now I work around this issue with a symlink:

$ ln -s $HOME/.local/share/wakatime/.wakatime.cfg $HOME/.wakatime.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants