Re: Input method not inherited in sub-shells on ssh?

Mike FABIAN <[email protected]>
Newsgroups gmane.linux.suse.m17n
Message-ID <[email protected]>
"Abhay Ghatpande" <[email protected]> :

> 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   <[email protected]>   http://www.suse.de/~mfabian



-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.