help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pinyin in GNOME


From: Luis Felipe
Subject: Re: Pinyin in GNOME
Date: Mon, 22 Apr 2024 12:59:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

Hi Felix,

El 22/04/24 a las 0:47, Felix Lechner via escribió:
Hi Tomas,

On Mon, Nov 06 2023, Tomas Volf wrote:

Not sure about pinyin, but for ibus I need to set

     (simple-service
      'im-env-vars home-environment-variables-service-type
      '(("GTK_IM_MODULE" . "ibus")
           ("QT_IM_MODULE" . "ibus")
           ("XMODIFIERS" . "@im=ibus")
        ;; TODO: Are these still required?  If yes, try to get rid of them.
           ("GUIX_GTK2_IM_MODULE_FILE"
         . "$HOME/.guix-home/profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache")
           ("GUIX_GTK3_IM_MODULE_FILE"
         . "$HOME/.guix-home/profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache")))
That works locally under EXWM, but have been unable to get ibus working
under GNOME.  Would someone please post a complete recipe, including
what to install in which profile, and whether to start GNOME in X or
Wayland?

I use GNOME in X. In my system configuration I have this package:

  #| NOTE: I'd like to have ibus available to all users by default,

  but last time I checked, this didn't work as expected and I still
  had to install it in user profiles. |#
  (specification->package "ibus")

In the manifest for my user profile I have these packages:

  "ibus"
  "ibus-anthy"
  "ibus-libhangul"
  "ibus-libpinyin"
  "ibus-speech-to-text"

In my ~/.profile file I export these variables:

  # GUIX RELATED VARIABLES TO WORK AROUND BUG #35610
  # https://issues.guix.gnu.org/issue/35610
  # export GUIX_GTK2_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-2.0/2.10.0/immodules-gtk2.cache"   export GUIX_GTK3_IM_MODULE_FILE="$HOME/.guix-profile/lib/gtk-3.0/3.0.0/immodules-gtk3.cache"
  # These are needed only to work on Qt apps like TeXmacs.
  export XMODIFIERS="@im=ibus"  # Set X input method server (xim) to ibus.
  export QT_IM_MODULE="ibus"    # Set Qt input method module to ibus.

Finally, every time I start a GNOME desktop session, I have to run the following:

  ibus-daemon -drx

I input Japanese reliably using this. I don't use the other input methods often, but they work, as far as I can see.

Hope that helps,

Attachment: OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]