[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED and additional question] Re: Setting dconf values as admin (use gsettings instead)

On Wed, Oct 25, 2017 at 01:26:26PM +0200, Josef Wolf wrote:
> According to the instrunctions on 
>   https://wiki.gnome.org/action/show/Projects/dconf/SystemAdministrators?action=show&redirect=dconf%2FSystemAdministrators

So here's my solution:

First of all, dconf is low-level and is not meant to be messed by
applications. The way to go is glib and gsettings. Maybe this information
should be written somewhere at a prominent place.

So I go and create a file like this:

   $ cat /usr/share/glib-2.0/schemas/50-cfsvn-users.gschema.override

Then, I call glib-compile-schemas like this:

  $ sudo glib-compile-schemas /usr/share/glib-2.0/schemas

This works fine so far. Since it won't fiddle with the user files, it doesn't
matter whether the user is logged in or not.

There's a drawback, though:

I'd rather not pollute system directories like /usr/share. I'd prefer to put
my files to /usr/local/share/glib-2.0/schemas which is also listed in
XDG_DATA_DIRS. But glib-compile-schemas won't accept that. It will refuse to
do anything if there are ONLY override files without any xml files.

So, any hints on that?

Josef Wolf
jw at raven.inka.de