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

Clean gsetting schemas installation #1064

Closed
gsemet opened this issue Jan 13, 2018 · 5 comments
Closed

Clean gsetting schemas installation #1064

gsemet opened this issue Jan 13, 2018 · 5 comments

Comments

@gsemet
Copy link
Member

gsemet commented Jan 13, 2018

Glib/gsettings schemas is actually installed twice:

  • once in /usr/share/glib-2.0/schemas to dconf-editor is happy
  • once in /usr/local/lib/python3.5/dist-packages/guake/data/ and used by guake

need to change so only one is used. Need to support development mode where is is not yet installed.
My guess is that:

  • development, manual install through sudo make install and pypi install would use the Guake's data directory, so there is no modification of the system. dconf-editor might not see this schema.
  • package installation (apt install guake) would use glib-2.0 schemas directory, allowing using to use dconf-editor.
@aichingm
Copy link
Collaborator

aichingm commented Jan 25, 2018

Don't forget /usr/lib/python3.{5,6}/site-packages/guake/data/ for none debian users 👍 (#1122)

@gsemet gsemet modified the milestones: 3.1.0, 3.2.0 Apr 9, 2018
@jtojnar
Copy link
Contributor

jtojnar commented Apr 9, 2018

Why are you installing the data to pythondir? If you used $(prefix)/share, GLib would pick up the schemas automatically (it checks XDG_DATA_DIRS).

For testing without installation, you can do something similar to what, for example, GNOME Music does:

  1. Compile the schemas to the build dir: https://gitlab.gnome.org/GNOME/gnome-music/blob/44d21816a0b87f84f631faf82d3012a44355238c/meson_post_conf.py
  2. Create a config template, that will extend the XDG_DATA_DIRS variable with the builddir: https://gitlab.gnome.org/GNOME/gnome-music/blob/44d21816a0b87f84f631faf82d3012a44355238c/gnome-music.in#L43
  3. Configure the file: https://gitlab.gnome.org/GNOME/gnome-music/blob/44d21816a0b87f84f631faf82d3012a44355238c/meson.build#L73-89

@gsemet
Copy link
Member Author

gsemet commented Apr 9, 2018

OK, i'll see that. I actually always found these extremely complex, without even finding a clean and simple "good practices guide".

@gsemet
Copy link
Member Author

gsemet commented Apr 9, 2018

Relates to #1236

@gsemet gsemet modified the milestones: 3.2.0, 3.1.0 Apr 9, 2018
@gsemet
Copy link
Member Author

gsemet commented Apr 11, 2018

fixed on HEAD

@gsemet gsemet closed this as completed Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants