From 46574fcc54eba3ed4245f85d2725c6ea019b39be Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 22 Dec 2017 21:45:38 +0800 Subject: Replace all hard-coded /etc path with sysconfdir 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 --- bin/dconf-update.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.1