Distinguish between input method "XIM" and "none"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson | ||
Xenial |
Fix Released
|
Medium
|
Gunnar Hjalmarsson |
Bug Description
[Impact]
language-
This SRU adds an explicit "XIM" option, and converts the "none" option to actually set "none".
A recent reason why an explicit "none" option is needed is Ubuntu MATE, which does not install any IM framework by default for non-CJKV users. Currently, when such a user opens Language Support for the first time, the input method selector shows a blank value. With this SRU it will correctly show "none".
[Test Case]
An example test case would be:
* Make a fresh install of Ubuntu MATE 16.04.
* Open Language Support and find that the input method value is blank.
[Regression Potential]
Low. This won't *change* the input method setting, but the currently set value will be showed more correctly in some cases.
Changed in language-selector (Ubuntu Xenial): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in language-selector (Ubuntu): | |
status: | In Progress → Fix Committed |
I don't know if the order of inputMethods matters, but none will always be at the end with the following change.
35 def getAvailableInp utMethods( self): check_output( ['im-config' , '-l']). decode( ).split( ) inputMethods) subprocess. check_output( ['im-config' , '-l']). decode( ).split( )) append( 'none')
36 - inputMethods = subprocess.
37 - return sorted(
38 + inputMethods = sorted(
39 + inputMethods.
40 + return inputMethods