From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: GSettings schemas Date: Mon, 22 Sep 2014 09:38:20 +0200 Message-ID: <874mw0umtv.fsf_-_@gnu.org> References: <87y4tliahf.fsf@gnu.org> <87r3zabohm.fsf@gnu.org> <8738bp16k4.fsf@gnu.org> <87lhpgoxjp.fsf@gnu.org> <87fvfm8m4f.fsf@gnu.org> <87fvfm595n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVyCg-0005AR-6N for guix-devel@gnu.org; Mon, 22 Sep 2014 03:38:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVyCa-0001Qk-3v for guix-devel@gnu.org; Mon, 22 Sep 2014 03:38:34 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:53033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVyCZ-0001Oo-M1 for guix-devel@gnu.org; Mon, 22 Sep 2014 03:38:28 -0400 In-Reply-To: (Federico Beffa's message of "Sun, 21 Sep 2014 00:02:13 +0200") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: guix-devel@gnu.org Federico Beffa skribis: > (emacs:33176): GLib-GIO-ERROR **: attempting to create schema 'org.gtk.Se= ttings.FileChooser' without a path > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x00007ffff4dfd0ba in g_logv () from /gnu/store/7v44p77l3867slbpnamzs5jgb= yps2v7q-glib-2.40.0/lib/libglib-2.0.so.0 > (gdb) bt > #0 0x00007ffff4dfd0ba in g_logv () from /gnu/store/7v44p77l3867slbpnamzs= 5jgbyps2v7q-glib-2.40.0/lib/libglib-2.0.so.0 > #1 0x00007ffff4dfd212 in g_log () from /gnu/store/7v44p77l3867slbpnamzs5= jgbyps2v7q-glib-2.40.0/lib/libglib-2.0.so.0 > #2 0x00007ffff5f6af54 in g_settings_constructed () from /gnu/store/7v44p= 77l3867slbpnamzs5jgbyps2v7q-glib-2.40.0/lib/libgio-2.0.so.0 > #3 0x00007ffff50f433a in g_object_new_internal () from /gnu/store/7v44p7= 7l3867slbpnamzs5jgbyps2v7q-glib-2.40.0/lib/libgobject-2.0.so.0 > #4 0x00007ffff50f6444 in g_object_new_valist () from /gnu/store/7v44p77l= 3867slbpnamzs5jgbyps2v7q-glib-2.40.0/lib/libgobject-2.0.so.0 > #5 0x00007ffff50f6834 in g_object_new () from /gnu/store/7v44p77l3867slb= pnamzs5jgbyps2v7q-glib-2.40.0/lib/libgobject-2.0.so.0 > #6 0x00007ffff6830e9c in _gtk_file_chooser_get_settings_for_widget () fr= om /gnu/store/5shj344c9vrh4fx93r9lfjjrrr97fmjv-gtk+-3.10.1/lib/libgtk-3.so.0 > #7 0x00007ffff6828130 in gtk_file_chooser_default_get_default_size () fr= om /gnu/store/5shj344c9vrh4fx93r9lfjjrrr97fmjv-gtk+-3.10.1/lib/libgtk-3.so.0 > #8 0x00007ffff682eda4 in file_chooser_widget_default_size_changed () fro= m /gnu/store/5shj344c9vrh4fx93r9lfjjrrr97fmjv-gtk+-3.10.1/lib/libgtk-3.so.0 [...] > #24 0x00000000004cc010 in xg_get_file_with_chooser () > #25 0x00000000004d00ea in xg_get_file_name () > #26 0x00000000004bd3f9 in Fx_file_dialog () I see, I can reproduce it by clicking on the =E2=80=9Copen file=E2=80=9D ic= on. > I've found that setting the environment variable GSETTINGS_SCHEMA_DIR > solves the problem. > > $ GSETTINGS_SCHEMA_DIR=3D/gnu/store/5shj344c9vrh4fx93r9lfjjrrr97fmjv-gtk+= -3.10.1/share/glib-2.0/schemas emacs > > Can the schema location be fixed at configure/compile time? We could use =E2=80=98wrap-program=E2=80=99 to set that variable for Emacs,= but we need to address that problem more generally. This is actually a longstanding issue: http://lists.gnu.org/archive/html/guix-devel/2013-10/msg00171.html http://lists.gnu.org/archive/html/guix-devel/2013-10/msg00024.html http://lists.gnu.org/archive/html/guix-devel/2013-11/msg00019.html I would introduce a =E2=80=98glib-build-system=E2=80=99 that would have a p= ost-install phase to recompile the schemas visible to the package being built, and wrap the binaries so GSETTINGS_SCHEMA_DIR refers to them. I think that makes for a good project for this week-end=E2=80=99s hackathon. Any volunteer? :-) Thanks, Ludo=E2=80=99.