Cannot activate Chinese input method for Qt app

Bug #1634089 reported by XiaoGuo, Liu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Medium
Jamie Strandboge

Bug Description

I have a Qt application which needs to input Chinese characters. I have tried to make it work, however, it can only work under "devmode". There is no corresponding plug for use. My project is at:

https://github.com/liu-xiao-guo/rssreader_slim

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

I tried to reproduce this issue and the command fails to start:

$ rssreader-app.rssreader
/snap/rssreader-app/x1/bin/desktop-launch: line 251: /snap/rssreader-app/x1/lib/x86_64-linux-gnu/bin/rssreader: No such file or directory

I tried to find 'rssreader' in the SNAP directory, but it wasn't there. Can you provide a snap or update the snapcraft.yaml so it can be correctly built for testing this issue?

Changed in snappy:
status: New → Incomplete
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

I think you did not build the snap file successfully. in my place, it is about 102M, and it worked well:

liuxg@liuxg:~/release/rssreader_slim$ ls -alh
total 102M
drwxrwxr-x 8 liuxg liuxg 4.0K 11月 16 07:09 .
drwxrwxr-x 143 liuxg liuxg 12K 11月 16 07:03 ..
drwxrwxr-x 8 liuxg liuxg 4.0K 11月 16 07:03 .git
drwxrwxr-x 5 liuxg liuxg 4.0K 11月 16 07:07 parts
drwxr-xr-x 9 liuxg liuxg 4.0K 11月 16 07:09 prime
-rw-r--r-- 1 liuxg liuxg 102M 11月 16 07:10 rssreader-app_1.0_amd64.snap
drwxrwxr-x 3 liuxg liuxg 4.0K 11月 16 07:03 setup
-rw-rw-r-- 1 liuxg liuxg 2.0K 11月 16 07:03 snapcraft.yaml
drwxrwxr-x 4 liuxg liuxg 4.0K 11月 16 07:03 src
drwxr-xr-x 8 liuxg liuxg 4.0K 11月 16 07:08 stage

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thanks for the snap. I can reproduce this with:

1. Systems Settings Language Support, if prompted install the complete language support
2. Install Chinese (simple and traditional)
3. Select 'fcitx' under 'Keyboard input method system'
4. sudo apt-get install fcitx-pinyin fcitx-sunpinyin fcitx-frontend-gtk
5. logout / login
6. System Settings / Text Entry - add Pinyin (Fcitx)
7. select Pinyin from the indicator
8. launch rssreader-app.rssreader
9. start typing in the search field

Changed in snappy:
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → Medium
status: Incomplete → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

It looks like fcitx has two listeners, one on the fcitx bus and one on the session bus. gtk3 apps use the fcitx bus but qt apps use the session bus.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Changed in snappy:
status: In Progress → Fix Committed
Michael Vogt (mvo)
Changed in snappy:
status: Fix Committed → Fix Released
no longer affects: snapd (Ubuntu)
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

I just retested it on Ubuntu Desktop 16.04:

liuxg@liuxg:~/Downloads$ snap --version
snap 2.20ubuntu1
snapd 2.20ubuntu1
series 16
ubuntu 16.04

The problem still exists, and now it does not work even using the devmode. What could be the problem for it?

Thanks!

Changed in snappy:
status: Fix Released → New
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

XiaoGuo, Liu, this bug was fixed with 2.18. It seems that there is a new and different bug that also affects devmode. Can you file a new bug with steps to reproduce? Thanks!

Changed in snappy:
status: New → Fix Released
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

anyway, I have reported a new bug at: https://bugs.launchpad.net/snappy/+bug/1653852

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.