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

Schema problem when running uninstalled #552

Closed
GeraldJansen opened this issue Feb 12, 2020 · 2 comments
Closed

Schema problem when running uninstalled #552

GeraldJansen opened this issue Feb 12, 2020 · 2 comments

Comments

@GeraldJansen
Copy link
Contributor

Running in development/uninstalled mode fails because of uninstalled schema.
Using current master (21568b0):

[src]$ python3 hamster-cli.py 
(hamster-cli.py:6999): GLib-GIO-ERROR **: 09:20:18.546: Settings schema 'org.gnome.Hamster' is not installed
Trace/breakpoint trap (core dumped)
@mwilck
Copy link
Contributor

mwilck commented Feb 12, 2020

I don't think you can do much about that. I believe the schema has to be installed in a system location. But I may be wrong.

AFAICS you wouldn't have this problem if you installed once (from any version) and used development mode after that.

@ederag
Copy link
Collaborator

ederag commented Feb 12, 2020

Indeed, just hoped to get an answer to my question, then forgot.

Workaround:

glib-compile-schemas --targetdir=build/data data
GSETTINGS_SCHEMA_DIR=build/data python3 src/hamster-service.py &
GSETTINGS_SCHEMA_DIR=build/data python3 src/hamster-cli.py

With your clear issue, it should be easy to find for devs.
Let's keep it open until we manage to automate that.

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