unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: 宋文武 <iyzsong@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: IBus and different GTK versions
Date: Mon, 14 Sep 2015 17:18:31 +0800	[thread overview]
Message-ID: <CAHZE2pdJs9yL2yLw42fnLz6PgNsW7t3CB4=kvwN=XnS5_mSX7g@mail.gmail.com> (raw)
In-Reply-To: <87k2rt8kvp.fsf@elephly.net>

2015-09-14 16:28 GMT+08:00, Ricardo Wurmus <rekado@elephly.net>:
>
> 宋文武 <iyzsong@gmail.com> writes:
>
>> Ricardo Wurmus <rekado@elephly.net> writes:
>>
>>> [...]
>>>
>>> It seems that GTK3 only looks for
>>> ‘$libdir/gtk-3.0/3.0.0/immodules.cache’ and GTK2 only looks for
>>> ‘$libdir/gtk-2.0/2.10.0/immodules.cache’ by default, where ‘$libdir’ is
>>> ‘$out/lib’ 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 ‘immodules.cache’ files that are *not*
>>> located in their ‘$libdir’.  In that case we could generate a fresh
>>> ‘immodules.cache’ file for each major GTK version when building a
>>> profile.  Unfortunately, I haven’t been able to find any documented
>>> 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.
>
> Does this mean that GTK needs to be installed in the user’s profile for
> this to work?  I thought ‘GTK_EXE_PREFIX’ would change the path of
> ‘$libdir’ for *all* of GTK’s libraries.  It can only have one value, not
> a list of paths to look for libraries.
Yes, this require install GTK+ into user's profile.
Also, there is a 'GTK_DATA_PREFIX' in a same situation, which I think is
the only way to set the GTK+ 2 theme.

  reply	other threads:[~2015-09-14  9:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13 11:27 IBus and different GTK versions Ricardo Wurmus
2015-09-13 11:51 ` 宋文武
2015-09-14  8:06   ` Ludovic Courtès
2015-09-14  8:28   ` Ricardo Wurmus
2015-09-14  9:18     ` 宋文武 [this message]
2015-09-15 19:16       ` Ricardo Wurmus
2015-09-20 17:12         ` Ricardo Wurmus
2015-09-20 18:25           ` Ricardo Wurmus
2015-09-21 16:06             ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHZE2pdJs9yL2yLw42fnLz6PgNsW7t3CB4=kvwN=XnS5_mSX7g@mail.gmail.com' \
    --to=iyzsong@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).