Bug 712255

Summary: Cannot trigger input method when switching to root with '-'
Product: Red Hat Enterprise Linux 5 Reporter: Kenichi Takemura <ktakemur>
Component: scimAssignee: Peng Wu <pwu>
Status: CLOSED WONTFIX QA Contact: QE Internationalization Bugs <qe-i18n-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: ebaak, eng-i18n-bugs
Target Milestone: rcKeywords: i18n, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-02 06:32:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kenichi Takemura 2011-06-10 00:36:30 UTC
Description of problem:

Cannot trigger input method(skim) in applications(gedit,firefox,kwrite) when I start the applications from root.

I tested on ja and ko and both produced but works fine for zhCN.

Version-Release number of selected component (if applicable):
scim-bridge-gtk-0.4.5-9.el5
scim-1.4.4-44.el5
scim-qtimm-0.9.4-5
scim-bridge-gtk-0.4.5-9.el5
scim-libs-1.4.4-44.el5
scim-libs-1.4.4-44.el5
scim-hangul-0.2.2-7.fc6
scim-qtimm-0.9.4-5
scim-bridge-0.4.5-9.el5


How reproducible:
100%

Steps to Reproduce:
1. Logon ja or ko Desktop
2. Open a terminal and switch user to root
3. Run gedit and trigger input method(scim) by hitting Ctrl-Space
  
Actual results:
Cannot trigger input method(skim)

Expected results:
Can trigger input method(skim)

Additional info:

Comment 1 Peng Wu 2011-06-10 04:55:05 UTC
Which command do you use when switching to root user?
`su` or `su -`?

Comment 2 Kenichi Takemura 2011-06-10 04:58:14 UTC
I use 'su -'

Comment 3 Peng Wu 2011-06-10 05:39:15 UTC
Please use `su` instead, `su -` will clear up some environment variables which are needed for scim.

Comment 4 Kenichi Takemura 2011-06-10 06:10:07 UTC
Ok. 'su' works for me.

Then Summary of this bug should read 'Cannot trigger input method(skim) when switching to root with -'?

Comment 5 Peng Wu 2011-06-10 06:26:02 UTC
Ok. Thanks for the report. Close this bug.

Comment 6 Kenichi Takemura 2011-06-14 00:00:16 UTC
Hi I have a question.

In zhCN I can trigger scim after 'su -', why?

Comment 7 Peng Wu 2011-06-14 08:27:39 UTC
Sorry, I make a mistake. Re-open it.

Comment 8 Peng Wu 2011-06-16 04:30:57 UTC
I finally re-produced this on RHEL 5.7 beta.

To re-produce this bug, need to change the locale of the root user.

Re-produce steps:
Method 1:
1. change the locale in /etc/sysconfig/i18n, then reboot;
2. this bug happens with ko, ja. IME works in zh_CN.

Method 2:
1. switch to root user with `su -`;
2. launch gedit with `LC_ALL=zh_CN.UTF-8 LANG=zh_CN.UTF-8 gedit`;
3. this bug happens with ko, ja. IME works in zh_CN.

Comment 9 Jens Petersen 2011-08-02 06:32:31 UTC
BTW skim actually exists (it was scim for KDE) so better not to misspell it.

While this is an interesting report - not really sure if
it is worth an errata.  It is not really recommended to
run GUI applications as root.

eg I just tried running system-config-users on F15 and RHEL6
for example and also can't use IM there for better or worse.