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

Can't change data location #642

Open
molchanov-pavel opened this issue Dec 3, 2024 · 2 comments
Open

Can't change data location #642

molchanov-pavel opened this issue Dec 3, 2024 · 2 comments

Comments

@molchanov-pavel
Copy link

Hi! I seem not be able to change the location of saved data.
I added the following lines into the config file:

import /usr/share/doc/timewarrior/themes/dark_green.theme
data.location = /home/my-pc/Sync/timew
TIMEWARRIORDB = /home/my-pc/Sync/timew

However, the data file is still saved in the original directory.
Thank you in advance for your help!

@smemsh
Copy link
Contributor

smemsh commented Dec 3, 2024

$TIMEWARRIORDB is an environment variable; it does not go in the config file, but is to be present in the execution environment.

The string data.location is not present anywhere in the source or man pages.

@tjex
Copy link

tjex commented Dec 7, 2024

(just in case there's still confusion. The environment variable, is a variable for your shell environment, and should be set in .profile / .zprofile or .bashrc / .zshrc as export TIMEWARRIORDB="$HOME/path/to/dir".

Then start a new shell session and run again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants