Bug#878411: gnome-session-bin doesn't set environmental variable of GTK_IM_MODULE

2017-10-28 Thread Takahide Nojima
> > 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 + 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



Bug#878411: gnome-session-bin doesn't set environmental variable of GTK_IM_MODULE

2017-10-27 Thread Takahide Nojima

> 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. 

  I'm saying With current GNOME Desktop, wayland(currently default in
Debian sid) and current and older gnome-session-bin , it doesn't work. 

 After  checking source code of gnome-session-bin, I found it set
QT_IM_MODULE and XMODIFIERS env variable correctly , but it doesn't set
GTK_IM_MODULE (I don't know why). So I supporsed that patch.

 Recently GNOME Desktop, wayland in debian sid doesn't seems to execute
any scripts under /etc/Xsession.d/. Then, there isn't any chance to set
GTK_IM_MODULE env variable when gnome-shell is invoked. This cause 
gnome-shell menu invokes gtk applications without  GTK_IM_MODULE env
variable, they won't communicate to ibus.
(This cause "I can not type Japanese language anymore")

 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?

Takahide Nojima




 



Bug#878411: gnome-session-bin doesn't set environmental variable of GTK_IM_MODULE

2017-10-20 Thread Michael Biebl
On Fri, 13 Oct 2017 21:37:35 +0900 Takahide Nojima
 wrote:
> 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?

I don't think gnome-session ever set the GTK_IM_MODULE env variable.
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?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#878411: gnome-session-bin doesn't set environmental variable of GTK_IM_MODULE

2017-10-13 Thread Takahide Nojima
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);