From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: IBus and different GTK versions Date: Mon, 14 Sep 2015 10:06:16 +0200 Message-ID: <87zj0pv30n.fsf@gnu.org> References: <87a8sqa7at.fsf@elephly.net> <87mvwq35c4.fsf@gmail.com> 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]:56700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbOmJ-0006Fo-Or for guix-devel@gnu.org; Mon, 14 Sep 2015 04:06:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbOmI-00059y-Lf for guix-devel@gnu.org; Mon, 14 Sep 2015 04:06:19 -0400 In-Reply-To: <87mvwq35c4.fsf@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Sun, 13 Sep 2015 19:51:23 +0800") 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: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Ricardo Wurmus writes: > >> [...] >> >> It seems that GTK3 only looks for >> =E2=80=98$libdir/gtk-3.0/3.0.0/immodules.cache=E2=80=99 and GTK2 only lo= oks for >> =E2=80=98$libdir/gtk-2.0/2.10.0/immodules.cache=E2=80=99 by default, whe= re =E2=80=98$libdir=E2=80=99 is >> =E2=80=98$out/lib=E2=80=99 of the GTK package. (According to >> https://developer.gnome.org/gtk3/stable/gtk-running.html) >> >> To make IBus work we need to find a way to make the different major >> versions of GTK respect different =E2=80=98immodules.cache=E2=80=99 file= s that are *not* >> located in their =E2=80=98$libdir=E2=80=99. In that case we could gener= ate a fresh >> =E2=80=98immodules.cache=E2=80=99 file for each major GTK version when b= uilding a >> profile. Unfortunately, I haven=E2=80=99t been able to find any documen= ted >> means to achieve this. It might require patching the GTKs to check an >> additional path or environment variable. >> > We can set 'GTK_EXE_PREFIX' to the '~/.guix-profile', and generate the > 'immodules.cache' files in a profile hook. It will work for both gtk2 > and gtk3 applications. What other things does =E2=80=98GTK_EXE_PREFIX=E2=80=99 affect? The plan you suggest sounds good to me, my only concern is whether =E2=80=98GTK_EXE_PREFIX=E2=80=99 is too broad for our purposes. Thanks, Ludo=E2=80=99.