From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: IBus and different GTK versions Date: Sun, 13 Sep 2015 19:51:23 +0800 Message-ID: <87mvwq35c4.fsf@gmail.com> References: <87a8sqa7at.fsf@elephly.net> 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]:56139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zb5ng-0003Wz-Hp for guix-devel@gnu.org; Sun, 13 Sep 2015 07:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zb5nb-0006lZ-Oe for guix-devel@gnu.org; Sun, 13 Sep 2015 07:50:28 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:34096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zb5nb-0006l7-G4 for guix-devel@gnu.org; Sun, 13 Sep 2015 07:50:23 -0400 Received: by padhy16 with SMTP id hy16so116458481pad.1 for ; Sun, 13 Sep 2015 04:50:20 -0700 (PDT) In-Reply-To: <87a8sqa7at.fsf@elephly.net> 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: Ricardo Wurmus , guix-devel 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 loo= ks for > =E2=80=98$libdir/gtk-2.0/2.10.0/immodules.cache=E2=80=99 by default, wher= e =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 files= that are *not* > located in their =E2=80=98$libdir=E2=80=99. In that case we could genera= te a fresh > =E2=80=98immodules.cache=E2=80=99 file for each major GTK version when bu= ilding a > profile. Unfortunately, I haven=E2=80=99t been able to find any document= ed > 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.