From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: GNOME Settings Schemas - How are they searched for? Date: Mon, 24 Oct 2016 19:33:12 +0800 Message-ID: <87zilu9e2v.fsf@member.fsf.org> References: <20161024063256.GA25645@mail.thebird.nl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bydVO-0005rX-Sc for guix-devel@gnu.org; Mon, 24 Oct 2016 07:33:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bydVK-0008D5-0y for guix-devel@gnu.org; Mon, 24 Oct 2016 07:33:26 -0400 Received: from smtp25.openmailbox.org ([62.4.1.59]:51443 helo=smtp10.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bydVJ-0008Cd-RA for guix-devel@gnu.org; Mon, 24 Oct 2016 07:33:21 -0400 In-Reply-To: <20161024063256.GA25645@mail.thebird.nl> (Pjotr Prins's message of "Mon, 24 Oct 2016 06:32:56 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel@gnu.org, rennes@openmailbox.org Pjotr Prins writes: > I installed the same version on Guix on top of Debian - but I use > i3wm. No dbus - so maybe that is the root of the problem? > GSettings search its 'gschemas.compiled' files under environment variable `$GSETTINGS_SCHEMA_DIR` and then under each directory of `$XDG_DATA_DIRS/share/glib-2.0/schemas`. The file can contain multiple entries, compiled from XML gsettings schemas files provided by applications. We don't have profile hook to build 'gschemas.compiled', so the one in profile only can contains one package's schemas, which is not helpful as schemas from other (particularly gtk+) are required too. Current way to handle this is to wrap binaries using gsettings with XDG_DATA_DIRS, as does by `glib-or-gtk-build-system`.