> what about fcitx?

so I had a look to that, a bit similar to ibus

* bundle "fcitx-frontend-gtk3" in your deb

* include those lines in the bundle (replace the static version)

export XDG_CACHE_HOME=$SNAP_USER_DATA/.cache-$SNAP_VERSION
mkdir -p $XDG_CACHE_HOME
export GTK_IM_MODULE_DIR=$XDG_CACHE_HOME/immodules
export GTK_IM_MODULE_FILE=$XDG_CACHE_HOME/immodules/immodules.cache

if [ ! -d $GTK_IM_MODULE_DIR ]; then
  mkdir -p $GTK_IM_MODULE_DIR
  ln -s $SNAP/usr/lib/$ARCH/gtk-3.0/3.0.0/immodules/*.so $GTK_IM_MODULE_DIR
  $SNAP/usr/lib/$ARCH/libgtk-3-0/gtk-query-immodules-3.0 > $GTK_IM_MODULE_FILE
fi

that's enough to made it work in devmode (tried on the gnome-calculator
example)


unrelated to snap but to configre fcitx configure/working as your im framework 
under unity7 open language-selector install the chinese support (should give 
you the fcitx packages you need) and select fcitx as im method in the combo on 
the first tab, then restart your session. that gives you an indicator with a 
configure option, you can add a sunpinyn input method from there and use the 
indicator to switch to it, once that done typing in e.g the calculator input 
entry should give you an UI with chinese glyphs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1580463

Title:
  Snap blocks access to system input methods (ibus, fctix, ...)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1580463/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to