nikolassv / bartib

A simple timetracker for the command line. It saves a log of all tracked activities as a plaintext file and allows you to create flexible reports.
GNU General Public License v3.0
687 stars 36 forks source link

Bartib not initializing log file? #3

Closed kartva closed 3 years ago

kartva commented 3 years ago
$ touch ~/activities.bartib
$ echo $BARTIB_FILE
~/activities.bartib
$ bartib start -p "proj" -d "act"
Started activity: "act" (proj) at 2021-11-16 14:22
Error: Could not write to file: ~/activities.bartib

Caused by:
    No such file or directory (os error 2)

$ which bartib
/home/username/.cargo/bin/bartib

Context: cloned repository, used cargo install --path .

nikolassv commented 3 years ago

Could you try to set your $BARTIB_FILE to an absolute path, e.g /home/username/activities.bartib? I am not sure that it will handle relative paths correctly.

kartva commented 3 years ago

That fixed the issue.