From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#23260: (wxmaxima) crash: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed Date: Thu, 5 May 2016 17:59:00 +0200 Message-ID: <20160505175900.4ddddb33@scratchpost.org> References: <20160410132559.73fef5dc@scratchpost.org> <20160505134847.68e5056d@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLhJ-0004Vd-LR for bug-guix@gnu.org; Thu, 05 May 2016 12:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayLh7-00049P-KC for bug-guix@gnu.org; Thu, 05 May 2016 12:00:12 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayLh7-00045X-GQ for bug-guix@gnu.org; Thu, 05 May 2016 12:00:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ayLh4-0006en-1B for bug-guix@gnu.org; Thu, 05 May 2016 12:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160505134847.68e5056d@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 23260@debbugs.gnu.org In glib-2.46.1/gio/gsettingsschema.c there's a function "initialize_schema_sources" which is responsible for initializing the schema sources. It uses g_get_system_data_dirs() and traverses the result (which are supposed to be names of directories), and it checks an environment variable GSETTINGS_SCHEMA_DIR for the name of ONE directory; the basename of the regular file searched for is called "gschemas.compiled". Using $ export GSETTINGS_SCHEMA_DIR=/gnu/store/xz2vmk68f5jpscvpqqz1zqa7xr2ydarn-gtk+-3.20.1/share/glib-2.0/schemas makes it work. However, that can't be the right fix. Among other things, one can only specify a single directory that way. Also, the average user probably doesn't even know what glib schemas are. If that is fine anyway (why?), there seems to be already an environment variable "GTK_PATH" set by guix, so auto-setting $ export GSETTINGS_SCHEMA_DIR="${GTK_PATH}/../../share/glib-2.0/schemas" should make it work for the time being. I don't think this bug is specific to wxmaxima. I suggest to retitle it "Gtk3 FileChooser doesn't work - it doesn't find its settings" or something.