Re: [m17n] Input method not inherited in sub-shells on ssh?
Ok. I did some digging and prefixed XMODIFIERS='@im=SCIM' before running xterm and gedit. Worked like a charm. But it doesn't work with Firefox. Why? Another thing, if XMODIFIERS is exported using .bashrc, even then it doesn't work. The variable is set, but toggling the key doesnt switch the keyboard. The XMODIFIERS=... has to precede the command. Why is this? The .xim file also exports XMODIFIERS. So in what file should I export the XMODIFIERS so that it will be inherited? I am quite sure that this used to work in 10.0. Since upgrading to 10.1, Firefox is unable to accept Japanese input. Even when lauched directly from the panel. (Not from shell). Help! Abhay
Is this related somehow to this: http://www.scim-im.org/wiki/faq/gtk_gnome/why_firefox_mozilla_acrobat_reader... Do I really need to recompile Firefox from source? Abhay On 6/8/06, Abhay Ghatpande <hikaru.hibana@gmail.com> wrote:
Ok. I did some digging and prefixed XMODIFIERS='@im=SCIM' before running xterm and gedit. Worked like a charm. But it doesn't work with Firefox. Why?
Another thing, if XMODIFIERS is exported using .bashrc, even then it doesn't work. The variable is set, but toggling the key doesnt switch the keyboard. The XMODIFIERS=... has to precede the command. Why is this? The .xim file also exports XMODIFIERS. So in what file should I export the XMODIFIERS so that it will be inherited?
I am quite sure that this used to work in 10.0. Since upgrading to 10.1, Firefox is unable to accept Japanese input. Even when lauched directly from the panel. (Not from shell).
Help!
Abhay
Ok. Solved it. Though I don't know exactly how! I had copied the file http://www.suse.de/~mfabian/misc/xim as my ~/.xim. Deleted that. Now my ~/.xim reads: export INPUT_METHOD="scim" export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE=scim export QT_IM_SWITCHER=imsw-multi export QT_IM_MODULE=scim scim -d Also placed the same 5 variables in my ~/.bashrc: INPUT_METHOD="scim" XMODIFIERS='@im=SCIM' GTK_IM_MODULE=scim QT_IM_SWITCHER=imsw-multi QT_IM_MODULE=scim export INPUT_METHOD XMODIFIERS GTK_IM_MODULE export QT_IM_SWITCHER QT_IM_MODULE Restarted the system, and voila! Everything was back to normal. I don't know for sure if it is necessary to have all the above variables in both the ~/.xim and ~/.bashrc, but I am guessing that it is. Now Firefox, OpenOffice, gedit, all work without problems. Hope that helps someone who might face similar problems. Abhay On 6/8/06, Abhay Ghatpande <hikaru.hibana@gmail.com> wrote:
Is this related somehow to this: http://www.scim-im.org/wiki/faq/gtk_gnome/why_firefox_mozilla_acrobat_reader...
Do I really need to recompile Firefox from source?
Abhay
On 6/8/06, Abhay Ghatpande <hikaru.hibana@gmail.com > wrote:
Ok. I did some digging and prefixed XMODIFIERS='@im=SCIM' before running xterm and gedit. Worked like a charm. But it doesn't work with Firefox. Why?
Another thing, if XMODIFIERS is exported using .bashrc, even then it doesn't work. The variable is set, but toggling the key doesnt switch the keyboard. The XMODIFIERS=... has to precede the command. Why is this? The .xim file also exports XMODIFIERS. So in what file should I export the XMODIFIERS so that it will be inherited?
I am quite sure that this used to work in 10.0. Since upgrading to 10.1, Firefox is unable to accept Japanese input. Even when lauched directly from the panel. (Not from shell).
Help!
Abhay
"Abhay Ghatpande" <hikaru.hibana@gmail.com> さんは書きました:
Ok. Solved it. Though I don't know exactly how!
I had copied the file http://www.suse.de/~mfabian/misc/xim as my ~/.xim. Deleted that.
I should update the above pages real soon now. They are quite outdated.
Now my ~/.xim reads: export INPUT_METHOD="scim" export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE=scim export QT_IM_SWITCHER=imsw-multi export QT_IM_MODULE=scim scim -d
Yes, that's the best way to do it. You don't really need to set the INPUT_METHOD variable here, but it doesn't hurt of course and the other lines are necessary if you want to start scim with your own ~/.xim file.
Also placed the same 5 variables in my ~/.bashrc: INPUT_METHOD="scim" XMODIFIERS='@im=SCIM' GTK_IM_MODULE=scim QT_IM_SWITCHER=imsw-multi QT_IM_MODULE=scim export INPUT_METHOD XMODIFIERS GTK_IM_MODULE export QT_IM_SWITCHER QT_IM_MODULE
Restarted the system, and voila! Everything was back to normal. I don't know for sure if it is necessary to have all the above variables in both the ~/.xim and ~/.bashrc, but I am guessing that it is.
setting the variables in your ~/.bashrc as well helps if you log into a remote system using "ssh -X" because ~/.xim is sourced only on the system where the X-server is running. But you need to have these environment variables set on the remote system as well if you want to use scim from a remote shell.
Now Firefox, OpenOffice, gedit, all work without problems.
Hope that helps someone who might face similar problems.
Certainly. Thank you for posting on the mailing list. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Abhay Ghatpande
-
Mike FABIAN