From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) Subject: bug#23260: (wxmaxima) crash: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed Date: Sat, 28 May 2016 19:56:32 +0800 Message-ID: <878tyuflan.fsf@member.fsf.org> References: <20160410132559.73fef5dc@scratchpost.org> <20160505134847.68e5056d@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6ctW-0006Im-Kl for bug-guix@gnu.org; Sat, 28 May 2016 07:59:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6ctS-0002tq-II for bug-guix@gnu.org; Sat, 28 May 2016 07:59:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6ctS-0002tm-El for bug-guix@gnu.org; Sat, 28 May 2016 07:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b6ctS-0006wY-96 for bug-guix@gnu.org; Sat, 28 May 2016 07:59:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160505134847.68e5056d@scratchpost.org> (Danny Milosavljevic's message of "Thu, 5 May 2016 13:48:47 +0200") 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: Danny Milosavljevic Cc: 23260@debbugs.gnu.org Danny Milosavljevic writes: > I finally got to the bottom of it. > > It says: > > (wxmaxima:27910): GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed > > and it's right. I'm not sure how it's supposed to find them. > > On this GuixSD installation I only have a minimal number of packages > in the operating-system definition of the system profile (and gtk is > not in it). I have installed gtk into my user's profile but I really > shouldn't have to, right? (and it still doesn't work) > > However, lots of programs use gtk. If they do, they'll sooner or later need the filechooser. However, gtk-3 filechooser needs its settings schema. > > Environment variables with "GTK" in the name are: > > GTK_DATA_PREFIX=/run/current-system/profile > GTK_PATH=/gnu/store/mjjkx5fq0gn5bg89pz2gsipjs975m2im-gtk+-3.18.2/lib/gtk-3.0 > GUIX_GTK3_PATH=/home/dannym/.guix-profile/lib/gtk-3.0:/home/dannym/.guix-profile/lib/gtk-3.0 > > But the schema 'org.gtk.Settings.FileChooser' is not found since it's in: > > /gnu/store/mjjkx5fq0gn5bg89pz2gsipjs975m2im-gtk+-3.18.2/share/glib-2.0/schemas > > which is installed nowhere. I know I can easily workaround this by > manually installing it in the system profile - but shouldn't it be > solved in some better manner? Yes, as you found, the FileChooser schema must be known by wxmaxima via GSETTINGS_SCHEMA_DIR or XDG_DATA_DIRS. There is a `glib-or-gtk-build-system', when use it, all executables will be wraped with XDG_DATA_DIR, combining from inputs's $out/share directories. Currently, applications using gsettnigs can be handled this way or wrap it manually using `wrap-program'. Thanks for your report, I fixed this specified issue in commit de477809d773.