From mboxrd@z Thu Jan 1 00:00:00 1970 From: sirgazil Subject: bug#35610: Freshly installed IBus intput method is not listed as an input source Date: Tue, 07 May 2019 10:24:08 -0500 Message-ID: <16a92e5168a.c047904267396.5245447779539826034@zoho.com> References: <16a8f05b586.e58d03a555242.5478544775393299734@zoho.com> <20190506214827.l3mwmty5cvb2lpbw@cf0> <878svjyubi.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 ([209.51.188.92]:43225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO2gJ-00011A-Vf for bug-guix@gnu.org; Tue, 07 May 2019 12:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hO2gI-0005r8-Qb for bug-guix@gnu.org; Tue, 07 May 2019 12:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hO2gI-0005qv-Ju for bug-guix@gnu.org; Tue, 07 May 2019 12:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hO2gI-0005by-9w for bug-guix@gnu.org; Tue, 07 May 2019 12:11:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878svjyubi.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Chris Marusich Cc: 35610 <35610@debbugs.gnu.org> ---- On Mon, 06 May 2019 19:36:17 -0500 Chris Marusich wrote ---- > ison writes:=20 > =20 > > I currently have ibus with anthy working, but I had this exact same pr= oblem at=20 > > first. I'm not 100% sure what I finally did to solve it, but I think i= t may have=20 > > been a missing environment variable. Here is what I have set:=20 > > export GTK_IM_MODULE_FILE=3D"/run/current-system/profile/lib/gtk-3.0/3= .0.0/immodules-gtk3.cache"=20 > > export GTK_IM_MODULE=3D"xim"=20 > > export XMODIFIERS=3D"@im=3Dibus"=20 > > export QT_IM_MODULE=3D"xim"=20 > >=20 > > I'm thinking the $GTK_IM_MODULE_FILE variable is the missing ingredien= t.=20 > > However, while attempting to fix this I also installed the packages:= =20 > > ibus, ibus-anthy, dbus, python-dbus, python2-dbus=20 > >=20 > > If you need these packages too to make it work then perhaps its worth= =20 > > investigating if the anthy package is missing some dependencies.=20 > =20 > FWIW I have the following in my ~/.bash_profile. If you search the=20 > email list archives for these environment variables, you'll find some=20 > relevant discussions:=20 I found the discussion. The topic is "Typing on GuixSD in languages other t= han English" (https://lists.gnu.org/archive/html/help-guix/2016-04/msg00006= .html). I participated, I'm Luis Felipe :) > --8<---------------cut here---------------start------------->8---=20 > # Enable GTK+2 and GTK+3 programs to simultaneously use the right=20 > # immodules cache file. This is a Guix-specific work-around.=20 > # See: https://lists.gnu.org/archive/html/guix-devel/2016-08/msg01634.ht= ml=20 > export GUIX_GTK2_IM_MODULE_FILE=3D"$HOME/.guix-profile/lib/gtk-2.0/2.10.= 0/immodules-gtk2.cache"=20 > export GUIX_GTK3_IM_MODULE_FILE=3D"$HOME/.guix-profile/lib/gtk-3.0/3.0.0= /immodules-gtk3.cache"=20 > --8<---------------cut here---------------end--------------->8---=20 > =20 > =E3=81=94=E8=A6=A7=E3=81=AE=E9=80=9A=E3=82=8A=E3=80=81=E6=97=A5=E6=9C=AC= =E8=AA=9E=E5=85=A5=E5=8A=9B=E3=81=AF=E3=81=A7=E3=81=8D=E3=81=A6=E3=81=84=E3= =81=BE=E3=81=99=E3=80=82=20 > =20 > If it still doesn't work for you, I'll be happy to help troubleshoot.=20 > I set this up years ago, and the one thing I remember is that it was a= =20 > bit of a hassle.=20 So, yeah, that didn't work for me. I added the exports to my "~/.bash_profi= le", rebooted, and still no "Japanese (Anthy)" listed anywhere. Looking at ison's exports, I thought, "I 've seen this before", and yes, I = found in my old notes about IBus that when you started IBus Preferences for= the first time you were ask whether you wanted to start the ibus daemon, a= nd on Yes, you were asked to export the following too: export GTK_IM_MODULE=3Dibus export XMODIFIERS=3D@im=3Dibus export QT_IM_MODULE=3Dibus (For people reading this in the list archives, the second line is "export X= MODIFIERS=3DATim=3Dibus", where "AT" is the "at sign". The archives interpr= et it as an email address and won't display the line correctly). The difference with ison's is that these exports use "ibus", not "xim". Ric= ardo mentions the three lines above in the previous discussion on the list = too (https://lists.gnu.org/archive/html/help-guix/2016-04/msg00016.html). S= o I also tried this in my "~/.bash_profile": export GUIX_GTK2_IM_MODULE_FILE=3D"$HOME/.guix-profile/lib/gtk-2.0/2.10= .0/immodules-gtk2.cache"=20 export GUIX_GTK3_IM_MODULE_FILE=3D"$HOME/.guix-profile/lib/gtk-3.0/3.0.= 0/immodules-gtk3.cache"=20 export IBUS_COMPONENT_PATH=3D"$HOME/.guix-profile/share/ibus/component" export GTK_IM_MODULE=3Dibus export XMODIFIERS=3D@im=3Dibus export QT_IM_MODULE=3Dibus And then rebooted. But nothing changed. I still can't find "Japanese (Anthy= )" anywhere. Working around this issue seems difficult, so I'll use romaji for now. Thanks ison, Chris, and Florian for the help :)