Code Monkey home page Code Monkey logo

Comments (9)

xuzhao9 avatar xuzhao9 commented on July 25, 2024

I have found a workaround:

export GTK_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
firefox

This is because firefox only detects "fcitx", not "fcitx5" in its IMContextWrapper. Closed.
https://github.com/mozilla/gecko-dev/blob/49ed791eec93335abfe6c2880f84c324e73e47e6/widget/gtk/IMContextWrapper.cpp#L480

from fcitx5.

hehelego avatar hehelego commented on July 25, 2024

I have encountered the same issue.
Thanks for posting this issue and the work around.

from fcitx5.

dextertd avatar dextertd commented on July 25, 2024

Every time I install fcitx5 onto a new machine (Manjaro Linux), I always have to add the following lines to my ~/.bash_profile because of this problem; without it I cannot use fcitx5 in my most important applications like Firefox or Kate (KDE text editor).

# fcitx5
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

Is there no way to ensure this happens automatically? Or is this not fcitx5's fault but the fault of other applications. It would be really convenient if manual user intervention wasn't necessary.

from fcitx5.

wengxt avatar wengxt commented on July 25, 2024

do you have fcitx5-gtk installed? @dextertd

from fcitx5.

dextertd avatar dextertd commented on July 25, 2024

Yes I do @wengxt I always install the following packages for fresh systems

fcitx5
fcitx5-configtool
fcitx5-chinese-addons
fcitx5-gtk
fcitx5-qt

from fcitx5.

wengxt avatar wengxt commented on July 25, 2024

ah, sorry ; I was confused by the report title and I was thinking that you’re saying you having the same issue.

Yes it’s certainly possible that fcitx install a /etc/profile.d, or /etc/environment.d to set it up, but for setting this environment variable different distribution has their own way doing this. Actually even bash_profile won’t work globally. Especially when there’s other frameworks around like ibus.

I just don’t like to be very intrusive to users system, so I never tried to set those environment variables for users in fcitx.

@dextertd

from fcitx5.

dextertd avatar dextertd commented on July 25, 2024

Oh sorry, I should have created a new issue. I misunderstood the original description. That's my bad.

Sure I understand not wanting to be intrusive. I hope you might consider it anyway, as the current situation makes for a less than ideal setting up process in Manjaro, and new users might not understand why fcitx5 is working in some windows and not others. Certainly, when I first installed it, I had to learn about what qt and gtk were before I understood the problem, and then I was able to find a working solution. It was quite a confusing problem. Of course, it was a valuable learning experience, but as a learner who just wanted to type Chinese it felt unnecessarily frustrating.

from fcitx5.

wengxt avatar wengxt commented on July 25, 2024

@dextertd for manjaro case, there’s actually an manjaro specific package called manjaro asian input fcitx5 sth(I don’t remember the exact name, but you can just search for fcitx5)

from fcitx5.

xuzhao9 avatar xuzhao9 commented on July 25, 2024

I setup the following environment variables in /etc/environment and I never need to add it anywhere else:

GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS=@im=fcitx5

from fcitx5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.