Support

Using RStudio 0.99 with Fctix on Linux

Follow

Some users have reported problems invoking the IME when using RStudio 0.99 with the Fctix input framework. 

On Linux, RStudio uses a bundled version of Qt 5 that does not include support for Fctix by default. To resolve the problem, you can add Fctix's Qt 5 plugin from your system's Qt 5 installation to RStudio's platform input plugin folder:

$ sudo ln -s /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so /usr/lib/rstudio/bin/plugins/platforminputcontexts/

If your system doesn't have /usr/lib/(architecture)/qt5, you may need to add a system installation of Qt 5 (look at your specific Linux distribution's instructions). You can also find the source for the FCtix Qt 5 plugin on Github; an alternative method is to build the plugin yourself and copy it to /usr/lib/rstudio/bin/plugins/platforminputcontexts.

Thanks to this post for supplying the workaround.

Comments

  • Avatar
    LYU Daliang

    I have changed to iBus and it works with RStudio smoothly.

  • Avatar
    LYU Daliang

    I changed back to Fctix and ran the symbolic link command successfully, but RStudio still won't work with Fctix.

  • Avatar
    Tc

    It doesn't work in 1.0.136, But It seems that ikunya (author of the original blog) has it covered.
    [post](http://blog.goo.ne.jp/ikunya/e/ca6fd08bb8f304ccb90362b7d78b560c)
    1. download &install [fcitx-qt5-rstudio.tar.gz](http://ikuya.info/tmp/fcitx-qt5-rstudio.tar.gz)
    2. restart Rstudio.
    ```
    3. fcitx-qt5をダウンロード&展開&インストール
    めんどいのでwgetで取得します。

    $ wget http://ikuya.info/tmp/fcitx-qt5-rstudio.tar.gz
    $ tar xf fcitx-qt5-rstudio.tar.gz
    $ cd fcitx-qt5-rstudio
    $ sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1_amd64.deb
    ```

  • Avatar
    Junchen feng

    Tc, you are a life saver.

  • Avatar
    Tc

    # Ubuntu16.04 and Rstudio 1.0.153:

    It seems the above method doesn't work in 1.0.153 (again). Today I found that ikuya updated his pkgs and it worked perfectly for me under `Ubuntu16.04 and Rstudio 1.0.153`.

    Here is the link to the post: http://blog.goo.ne.jp/ikunya/e/48b3e547dd2b8c7cfbe2a8dadc0b962a

    Here is how-to in the post:

    $ wget http://ikuya.info/tmp/fcitx-qt5-rstudio-qt542.tar.gz
    $ tar xf fcitx-qt5-rstudio-qt542.tar.gz
    $ sudo apt install ./fcitx-frontend-qt5-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb ./libfcitx-qt5-1-rstudio_1.0.5-1ubuntu1~qt542_amd64.deb

    restart rstudio and you are good to go