Your message dated Sun, 29 Oct 2017 01:23:46 +0900
with message-id <1509207826.2666.38.ca...@gmail.com>
and subject line Re: gnome-session-bin doesn't set environmental variable of 
GTK_IM_MODULE
has caused the Debian Bug report #878411,
regarding gnome-session-bin doesn't set  environmental variable of GTK_IM_MODULE
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
878411: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878411
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gnome-session-bin
Version: 3.26.1-1
Severity: serious
Tags: patch

 I updated gnome desktop from debian sid. However, I found I can not
type Japanese language anymore.

 I finally found gnome-session-bin correctly set an envirionmental
variable of QT_IM_MODULE, but it doesn't set GTK_IM_MODULE , and this
cause gtk can't talk to ibus.

 So I worte a patch for temporary fix this problem, and attach the
patch. It works fine in my debian box.

 How about this patch?

 Thank you in advance,
Takahide Nojima

 
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -403,6 +403,10 @@
                         if (!p || !*p)
                                 p = "@im=ibus";
                         gsm_util_setenv ("XMODIFIERS", p);
+                        p = g_getenv ("GTK_IM_MODULE");
+                        if (!p || !*p)
+                                p = "ibus";
+                        gsm_util_setenv ("GTK_IM_MODULE", p);
                 }
 
                 g_free (ibus_path);

--- End Message ---
--- Begin Message ---
> > It's unclear from your bug report whether this was working before
> > for
> > you ("I can not anymore Japanes language anymore").
> > Are you saying that with older gnome-session-bin versions it
> > worked?
> > 
> 
>  No. 
...snip...
>  I guess , refer to main.c of gnome-session-bin, the best place of
> setting GTK_IM_MODULE env variable is in gnome-session-bin.
> 
>  Would you accept that patch as a temporary resolution?

Dear maintainer,

 I'm totally mistaken.(sorry!) 

 This patch isn't needed anymore.And also, this bug report I sent is
totaly wrong caused by my lack of knowledge about recent GNOME desktop.

 After my trial and error, I found a correct setting of gnome-control-
center, I became able to input Japanese without this patch. And also,
I found that in recent GNOME desktop, gtk applications can communicate 
to ibus without X_MODIFIERS/GTK_IM_MODULE env valiable anymore.

Correct setting and how to input Japanese using ibus:
 
 In gnome-control-center -> Region & Language -> 
      1st prior: Japanese (if you use Japanese layout keyboard)
      2nd prior: Japanese (Mozc)
  in  Input Source form. 
 
  After restarting gdm3 and doing login, press <Super(nomally as
windows key)>+<SPC> to switch input source to japanese mozc and  press
"Hankaku/Zenkaku" key,  user can input Japanese 
using mozc-jp engine via ibus.

  I did set "Region & Language" to "Japanese" (notice: "Mozc" isn't 
specified), and I found this setting means simply using Japanese layout
keyboard without using ibus.  

 Then, I mark this bug as done.

Takahide Nojima

--- End Message ---

Reply via email to