Merge lp:~attente/maliit/1245925 into lp:~ubuntu-core-dev/maliit/maliit-framework-ubuntu
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Ricardo Salveti on 2015-03-26 | ||||
| Approved revision: | 47 | ||||
| Merged at revision: | 47 | ||||
| Proposed branch: | lp:~attente/maliit/1245925 | ||||
| Merge into: | lp:~ubuntu-core-dev/maliit/maliit-framework-ubuntu | ||||
| Diff against target: |
13 lines (+5/-2) 1 file modified
debian/maliit-framework.sh (+5/-2) |
||||
| To merge this branch: | bzr merge lp:~attente/maliit/1245925 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ricardo Salveti | Approve on 2015-03-26 | ||
| Michael Sheldon (community) | Approve on 2015-03-24 | ||
| Sebastien Bacher | 2015-02-19 | Approve on 2015-02-19 | |
|
Review via email:
|
|||
Commit Message
maliit-framework.sh prevents IBus and Fcitx from running under Unity 7 because of the export of QT_IM_MODULE. This export should only be done under a Unity 8 session.
Description of the Change
maliit-framework.sh prevents IBus and Fcitx from running under Unity 7 because of the export of QT_IM_MODULE. This export should only be done under a Unity 8 session.
| Michael Sheldon (michael-sheldon) wrote : | # |
Seems to work fine on the device, I'm a bit confused though, as printing out the contents of XDG_SESSION_DESKTOP on a device (using the terminal inside unity8) gives "ubuntu-touch" rather than anything containing "unity8-". Do you know where XDG_SESSION_DESKTOP is set and whether this takes on a different value during start up or something? I'd like to fully understand the apparent inconsistency here before approving this.
- 47. By William Hua on 2015-03-05
-
Add ubuntu-touch as possible value for XDG_SESSION_
DESKTOP. It comes from the ubuntu-
touch-session package from the
/usr/share/lightdm/ lightdm. conf.d/ 52-ubuntu- touch.conf file.
| William Hua (attente) wrote : | # |
I don't have a device to test this on, but after looking a bit more, you're right. There are two different sessions, one is ubuntu-
So I guess the solution is to add ubuntu-touch as a possible match for XDG_SESSION_
| Michael Sheldon (michael-sheldon) wrote : | # |
What's the correct way to test this on the desktop? I'd like to verify that the fix works on the desktop given that it seemed to allow it to start with a different XDG_SESSION_DESKTOP value on devices.
| William Hua (attente) wrote : | # |
It can be tested under Unity 7, set the current input method framework to IBus if it isn't already:
im-config -n ibus
Then restart the session and try:
env | grep MODULE
If it's working properly, you should see:
QT_IM_MODULE=ibus
QT4_IM_MODULE=ibus
GTK_IM_MODULE=ibus
Otherwise, you'll see something like:
QT_IM_MODULE=
and QT4_IM_MODULE and GTK_IM_MODULE will not be set to ibus, preventing input methods from working.
| Michael Sheldon (michael-sheldon) wrote : | # |
Double checked on the desktop and it seems to be working correctly. It looks like QT_IM_MODULE=
| Ricardo Salveti (rsalveti) wrote : | # |
There is a side effect of changing it this way as it will export the variable if you're trying to launch apps from the shell (adb/ssh), as XDG_SESSION_DESKTOP is not available in there. This is not a problem as we have the same export happening via /etc/environment, so it's still a good change.
Later I don't think we need to have this file provided by this package, but we fist need to clean up our environment file.
| Ricardo Salveti (rsalveti) wrote : | # |
*it will not export


the change seems to work fine on a vivid device