diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-12-22 21:45:38 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2018-08-16 23:11:46 +0800 |
commit | 46574fcc54eba3ed4245f85d2725c6ea019b39be (patch) | |
tree | bcb09da74e5967becd68d2971cf812c83b84961e /bin | |
parent | a28fd39f780bbd6098a4852696de1a432b1a61c1 (diff) | |
download | dconf-46574fcc54eba3ed4245f85d2725c6ea019b39be.tar.gz |
Replace all hard-coded /etc path with sysconfdirwip/lantw/dont-hard-code-etc
This is useful for JHBuild environments and systems that don't want
to use /etc/dconf.
https://bugzilla.gnome.org/show_bug.cgi?id=739299
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dconf-update.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/dconf-update.vala b/bin/dconf-update.vala index b7a41dc..55a8231 100644 --- a/bin/dconf-update.vala +++ b/bin/dconf-update.vala @@ -247,8 +247,11 @@ void dconf_compile (string[] args) throws GLib.Error { } } +[CCode (cname = "SYSCONFDIR")] +extern const string CONFIG_SYSCONFDIR; + void dconf_update (string[] args) throws GLib.Error { - update_all ("/etc/dconf/db"); + update_all (CONFIG_SYSCONFDIR + "/dconf/db"); } // vim:noet ts=4 sw=4 |