projecthamster / hamster

GNOME time tracker

Home Page:http://projecthamster.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow running without installed gsettings schema

matthijskooijman opened this issue · comments

Currently, you can run hamster directly from a source checkout, but only when you have the gsettings schema installed (for example by installing the Debian package). If not, the README now links to a comment recommending to manuallly set up GSETTINGS_SCHEMA_DIR=./data to let gtk find the schema.

I would suggest we implement the above approach in the code automatically - if hamster.installed is false, then run glib-compile-schemas ./data and set GSETTINGS_SCHEMA_DIR=./data. This should make sure that running from the source tree always works, and always uses the correct schema version as well, making development just a little easier.

Doing this also makes it easier to run unit tests during the Debian package build, which is not currently done because of this issue. See https://salsa.debian.org/projecthamster-team/hamster-time-tracker/-/issues/2