Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to use gsettings from /opt so that ubuntu maintainers will accept my application.

I may not use /usr or any of the underlying directories so /usr/share/glib-2.0/schemas is not an option.

share|improve this question

Did you try quickly?

quickly package --extras

This will use the /opt directory.

share|improve this answer
I do not use python. – Aleksandar Jul 5 '12 at 10:21
I use vala and I do not use quickly. – Aleksandar Jul 5 '12 at 13:50

I solved this by creating a wrapper script :

GSETTINGS_SCHEMA_DIR=~/.local/share/glib-2.0/schemas /opt/my_app_dir/my_app

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.