Closed tchwpkgorg closed 2 years ago
The logic for opening the DB is in /usr/lib/python3/dist-packages/hamster/storage/db.py in the function __init_db_file(). The database is normally created as ~/.local/share/hamster/hamster.db (unless you have modified your XDG_DATA_HOME to something other than ~/.local/share). If that doesn't exist it also looks in two legacy directories, hamster-time-tracker and hamster-applet and tries to make a hard link to ~/.local/share/hamster. If no existing hamster.db is found, a template db is copied from /usr/share/hamster/hamster.db to the default location.
Aside from checking directory and file permissions, you may be able to get more info as follows:
pkill -ef hamster.*service 2>&1 >/dev/null `
/usr/libexec/hamster/hamster-service --log=INFO &
First hamster start - it complains that it can't find its database, yet exits with code 0. Can't use it and it doesn't give a clue how to initialize the database, or why it doesn't do it itself.
Hamster version 3.0.2.