Hide Forgot
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:
Which command do you use when switching to root user? `su` or `su -`?
I use 'su -'
Please use `su` instead, `su -` will clear up some environment variables which are needed for scim.
Ok. 'su' works for me. Then Summary of this bug should read 'Cannot trigger input method(skim) when switching to root with -'?
Ok. Thanks for the report. Close this bug.
Hi I have a question. In zhCN I can trigger scim after 'su -', why?
Sorry, I make a mistake. Re-open it.
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.
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.