Bug 398526

Summary: Ctrl-Space doesn't enable Chinese input.
Product: [openSUSE] openSUSE 11.0 Reporter: Xin Wei Hu <xwhu>
Component: OtherAssignee: Dirk Mueller <dmueller>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: ast, coolo, forgotten_tfBQIqYkT6, helios_reds, kde-maintainers, shinkichi.yamazaki, swyear, tiwai
Version: RC 2Flags: coolo: SHIP_STOPPER-
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch for libqt4 to delay input method initializing until chosen

Description Xin Wei Hu 2008-06-09 13:23:58 UTC
In RC1 and before, Ctrl-space brings up the input window of SCIM, which is ready for chinese input.

But in RC2, there're 2 scim icons in the tray on starting up.
And the Ctrl-space hot key doesn't work anymore.

However, you can still click the tray icon to bring up the input window.

This is a blocker for Chinese users.
Comment 1 Mike Fabian 2008-06-09 16:18:48 UTC
Strange, nothing has changed in our scim packages recently.

Which desktop are you using?
Comment 2 Xin Wei Hu 2008-06-10 15:11:42 UTC
It happens with GNOME, KDE3 and KDE4.
It turns out the scim is started as root in the first place.

After killing the scim processes, and start it as the current user, everything back to normal.
Comment 3 Mike Fabian 2008-06-11 10:44:20 UTC
I can reproduce that with RC4.

Comment 4 Xin Wei Hu 2008-06-16 04:48:57 UTC
So far I can confirm it's a problem of KDM4.
Comment 5 Peng Wu 2008-06-18 04:11:17 UTC
Because in qt4 imsw-multi will load all input method plugins, and initialize all input methods.
When scim-bridge is initialized, the scim and scim-bridge daemon will be launched.

So in qt4, no matter what input method will be used, all input method will be initialized.

When kdm_greet is launched, the scim will be automatically launched.

And the scim of root user will block ctrl-space.

So I make the patch to delay input method initializing until the input method is chosen.
Comment 6 Peng Wu 2008-06-18 04:14:25 UTC
Created attachment 222635 [details]
Patch for libqt4 to delay input method initializing until chosen
Comment 7 Xin Wei Hu 2008-06-18 05:35:31 UTC
The attached patch fixes the issue.
Comment 8 Mike Fabian 2008-06-18 09:49:32 UTC
Thank you very much! Testing ...
Comment 9 Mike Fabian 2008-06-18 15:26:27 UTC
Yes, this patch helps.
Comment 10 Mike Fabian 2008-06-18 16:08:51 UTC
libqt4 with that patch submitted to STABLE/Factory.
Comment 11 Mike Fabian 2008-06-18 16:11:22 UTC
As this is really a showstopper for 11.0 for CJK, can we do an online
update please?
Comment 12 Dirk Mueller 2008-06-19 09:51:54 UTC
there is an accessor for the slaves array in the header file (accessor slave() ) which is not patched by this patch. therefore it is unsafe to apply. 

disabling input method support in kdm4 is not a good idea to resolve this issue?
Comment 13 Mike Fabian 2008-06-19 10:50:24 UTC
I think disabling input method support in kdm4 would be OK as well.
Comment 14 Dirk Mueller 2008-07-14 08:56:25 UTC
*** Bug 372858 has been marked as a duplicate of this bug. ***
Comment 15 Mike Fabian 2008-07-14 10:48:09 UTC
Can we fix this with an online update, please?
Comment 16 Dirk Mueller 2008-07-14 23:09:11 UTC
yup, will do that for 11.0
Comment 19 Dirk Mueller 2008-07-16 12:42:01 UTC
submitted for 11.0
Comment 20 Anja Stock 2008-07-21 12:43:57 UTC
released