Bug 712307 - ibus losing preference on customize + restart
Summary: ibus losing preference on customize + restart
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 15
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-10 09:08 UTC by Hin-Tak Leung
Modified: 2011-07-04 01:25 UTC (History)
4 users (show)

Fixed In Version: ibus-1.3.99.20110419-7.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-01 18:57:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
IBus Preferences in ibus-1.3.99.20110419-5.fc15. (44.37 KB, image/png)
2011-06-25 02:07 UTC, sangu
no flags Details

Description Hin-Tak Leung 2011-06-10 09:08:47 UTC
Description of problem:

ibus can consistently lose all preferences on deselecting "Customize active input methods" and restart.

Version-Release number of selected component (if applicable):
ibus-1.3.99.20110419-1.fc15.x86_64

How reproducible:
Always

Steps to Reproduce:
1. select "Customize active input methods" to allow adding to the input method list
2. adding a whole bunch of chinese input methods (the 4 Cangjie's, and a few others)
3. unselecting "Customize active input methods"
4. The input methods are available
5. Now choose to restart ibus
  
Actual results:
All input methods selected lost

Expected results:
Input methods user selected preserved across session

Additional info:
ibus also seems to periodically lose user input method preference from time to time.

Not too sure about what's the purpose of the "Customize active input methods" checkbox - presumably anybody who invoke the preference panel intends to modify the method list, since viewing is available just from the main panel. So a checkbox which presumably limits it to viewing seems to be redundant. OTOH, if the checkbox means *enable* input methods, the wording is very misleading.

Comment 1 fujiwara 2011-06-10 09:41:54 UTC
Probably it's a wording issue.
We may need to think the better sentence or adding the tooltip; "Customize active input methods".

If the checkbox is disabled (by default), ibus always calculate the preloaded engines by login by locale. It's used for users who log into multiple locales.
You could try to log into Chinese, Japanese desktop with the disabled checkbox.

Comment 2 fujiwara 2011-06-10 09:43:33 UTC
The feature was integrated for the fix of bug 530711.

Comment 3 Hin-Tak Leung 2011-06-10 10:03:00 UTC
(In reply to comment #1)
> Probably it's a wording issue.
> We may need to think the better sentence or adding the tooltip; "Customize
> active input methods".
> 
> If the checkbox is disabled (by default), ibus always calculate the preloaded
> engines by login by locale. It's used for users who log into multiple locales.
> You could try to log into Chinese, Japanese desktop with the disabled checkbox.

Okay, so by 'customize input methods', you really means 'enable the use of input methods not in your current locale'. No wonder I keep losing my preference.

The way it is currently done a rather mis-feature and rather wrong. I use mainly an English (UK) environment but occasionally need to type Chinese.

And I think even the preloading (at least for Chinese users for Chinese locale) is wrong - there are probably 20+ traditional chinese input methods but most people only uses <5, but it is a different 5 for a different person. Not installing some methods is out of the question for multi-user systems, but preloading 20 methods for each person who only uses about 5 (and a specific 5) seems wrong and troublesome, and a long list to scroll to switch between them.

Comment 4 fujiwara 2011-06-13 03:09:33 UTC
(In reply to comment #3)

> Okay, so by 'customize input methods', you really means 'enable the use of
> input methods not in your current locale'. No wonder I keep losing my
> preference.

Enabling 'customize input methods' doesn't not lose your preference.
It's disabled by default, which loses your preference but you could keep your preference once you enable it.

> The way it is currently done a rather mis-feature and rather wrong. I use
> mainly an English (UK) environment but occasionally need to type Chinese.

So you could enable 'customize input methods' if you want to customize the input method list.
I wonder if you understand the feature.

> And I think even the preloading (at least for Chinese users for Chinese locale)
> is wrong - there are probably 20+ traditional chinese input methods but most
> people only uses <5, but it is a different 5 for a different person. Not

You don't figure out this feature correctly.
Preload engines doesn't mean to load all Chinese input methods.
You could test the feature with a new user.
It's a default setting for new users but you could customize the list.

Comment 5 Hin-Tak Leung 2011-06-13 15:32:59 UTC
(In reply to comment #4)
> (In reply to comment #3)
> 
> > Okay, so by 'customize input methods', you really means 'enable the use of
> > input methods not in your current locale'. No wonder I keep losing my
> > preference.
> 
> Enabling 'customize input methods' doesn't not lose your preference.
> It's disabled by default, which loses your preference but you could keep your
> preference once you enable it.
> 
> > The way it is currently done a rather mis-feature and rather wrong. I use
> > mainly an English (UK) environment but occasionally need to type Chinese.
> 
> So you could enable 'customize input methods' if you want to customize the
> input method list.
> I wonder if you understand the feature.
> 
> > And I think even the preloading (at least for Chinese users for Chinese locale)
> > is wrong - there are probably 20+ traditional chinese input methods but most
> > people only uses <5, but it is a different 5 for a different person. Not
> 
> You don't figure out this feature correctly.
> Preload engines doesn't mean to load all Chinese input methods.
> You could test the feature with a new user.
> It's a default setting for new users but you could customize the list.

I think I "understand" the feature, I just do not agree with it. At the moment (in UK English locale, and from what you said, very likely on US locale as well) there is none shown, and none selectable. To have any user-preferred (non-English) input method at all, one needs to click the check box, and choices remains until dbus restarts. This is confusing because:

1) preferences are only editable by clicking the check-box, and preferences does not disappear *immediately* on unchecking the ticked check-box, which suggests *wrongly* that the checkbox is required for *updating* the list. 

2) there is no warning on unchecking the check-box that preferences will be lose (and be lose when ibus restarts or the user relog-in).

Most importantly, I bet I am not the only person who choose to work primarily in a English desktop environment but have occasional non-English needs - I dare say my situation is probably in the majority (compared to chinese environment + choices of 5-ish familiar chinese input methods among 20+ input methods, or japanese environment + choice of a few input methods among a few).

So I suggest:
1) there should be some tooltip or better worded indication of what the check-box is really for

2) there should be a warning about losing user preference if the user unchecks the checkbox.

Comment 6 fujiwara 2011-06-15 04:59:22 UTC
(In reply to comment #5)
> 1) preferences are only editable by clicking the check-box, and preferences
> does not disappear *immediately* on unchecking the ticked check-box, which
> suggests *wrongly* that the checkbox is required for *updating* the list. 

OK, I agree to update the list on unchecking the box.
Previously I tried it but it would effect the ibus start up time during the login and caused dbus timeout. So I removed the updating function.
Now ibus supports the async functions and probably the performance is ok with my test. I implemented it now.

> So I suggest:
> 1) there should be some tooltip or better worded indication of what the
> check-box is really for
> 
> 2) there should be a warning about losing user preference if the user unchecks
> the checkbox.

OK, probably the 2) would be enough for your request.
Now I launch one dialog with:
"The list of your saved input methods will be cleared immediately and the list will be configured by the login language every time. Do you agree with this?"

https://github.com/fujiwarat/ibus/commit/874115071e9897435dd9a01e10f84d1c428ac36c

Comment 8 Fedora Update System 2011-06-21 09:19:44 UTC
ibus-1.3.99.20110419-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ibus-1.3.99.20110419-3.fc15

Comment 9 Fedora Update System 2011-06-21 23:54:13 UTC
Package ibus-1.3.99.20110419-3.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.3.99.20110419-3.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ibus-1.3.99.20110419-3.fc15
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2011-06-24 03:31:51 UTC
Package ibus-1.3.99.20110419-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.3.99.20110419-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ibus-1.3.99.20110419-5.fc15
then log in and leave karma (feedback).

Comment 11 sangu 2011-06-25 02:07:02 UTC
Created attachment 509869 [details]
IBus Preferences in ibus-1.3.99.20110419-5.fc15.

After updating to 1.3.99.20110419-5.fc15, Keyboard Shortcuts items(execpt Next Input method) are empty on IBus preferences.

Comment 12 fujiwara 2011-06-27 01:30:40 UTC
(In reply to comment #11)
> Created attachment 509869 [details]
> IBus Preferences in ibus-1.3.99.20110419-5.fc15.
> 
> After updating to 1.3.99.20110419-5.fc15, Keyboard Shortcuts items(execpt Next
> Input method) are empty on IBus preferences.

Yes, you're right.
In this change, I moved ibus trigger keys to engine hotkeys.
If you would add '<hotkeys>Hangul,Control+space<hotkeys> in /usr/share/ibus/component/hangul.xml and run 'ibus-daemon -r --xim -t refresh', you could enable ibus-hangle with Hangul key.

http://desktopi18n.wordpress.com/2011/06/23/ibus-icon-symbol-property/

Probably I will replace 'icon_symbol' with 'symbol' and update ibus again later.

Comment 13 fujiwara 2011-06-27 01:33:07 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Created attachment 509869 [details]
> > IBus Preferences in ibus-1.3.99.20110419-5.fc15.
> > 
> > After updating to 1.3.99.20110419-5.fc15, Keyboard Shortcuts items(execpt Next
> > Input method) are empty on IBus preferences.
> 
> Yes, you're right.
> In this change, I moved ibus trigger keys to engine hotkeys.
> If you would add '<hotkeys>Hangul,Control+space<hotkeys> in
> /usr/share/ibus/component/hangul.xml and run 'ibus-daemon -r --xim -t refresh',
> you could enable ibus-hangle with Hangul key.
> 
> http://desktopi18n.wordpress.com/2011/06/23/ibus-icon-symbol-property/
> 
> Probably I will replace 'icon_symbol' with 'symbol' and update ibus again
> later.

Currently I'm thinking the following patch for each engine:
http://pkgs.fedoraproject.org/gitweb/?p=ibus-anthy.git;a=commitdiff
https://github.com/ueno/ibus-skk/commit/7f6a6bfe155b210bb4a3073cc38ca25c161f5623

Comment 14 Fedora Update System 2011-06-29 21:59:15 UTC
Package ibus-1.3.99.20110419-6.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.3.99.20110419-6.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ibus-1.3.99.20110419-6.fc15
then log in and leave karma (feedback).

Comment 15 Fedora Update System 2011-06-30 18:55:47 UTC
Package ibus-1.3.99.20110419-7.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ibus-1.3.99.20110419-7.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ibus-1.3.99.20110419-7.fc15
then log in and leave karma (feedback).

Comment 16 fujiwara 2011-07-01 02:56:12 UTC
sangu.fedora: Do you have any problems?
The problem is fixed in my test.

Comment 17 sangu 2011-07-01 16:49:54 UTC
(In reply to comment #16)
> sangu.fedora: Do you have any problems?
> The problem is fixed in my test.

The same problem ( comment #11 ) still happens in 1.3.99.20110419-7.fc15.x86_64.

Comment 18 Fedora Update System 2011-07-01 18:57:37 UTC
ibus-1.3.99.20110419-7.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 fujiwara 2011-07-04 01:25:33 UTC
(In reply to comment #17)
> The same problem ( comment #11 ) still happens in
> 1.3.99.20110419-7.fc15.x86_64.

As I noted in comment #12, shortcut keys are no longer handled by ibus but each ibus engine.
If you'd like to add shortcut keys, you might need a bug for the specific engine (e.g. ibus-hangul) instead of ibus.


Note You need to log in before you can comment on or make changes to this bug.