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

Allow running without installed gsettings schema #745

Open
matthijskooijman opened this issue Nov 20, 2023 · 1 comment
Open

Allow running without installed gsettings schema #745

matthijskooijman opened this issue Nov 20, 2023 · 1 comment

Comments

@matthijskooijman
Copy link
Member

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.

@matthijskooijman
Copy link
Member Author

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

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

1 participant