Comments (9)
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.
I have encountered the same issue.
Thanks for posting this issue and the work around.
from fcitx5.
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.
do you have fcitx5-gtk installed? @dextertd
from fcitx5.
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.
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.
from fcitx5.
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.
@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.
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)
- tscancode静态代码检查 HOT 1
- Fcitx 5.1.6 crashes on uv_poll_start() on OpenBSD 7.4 current during dbus connection HOT 3
- Emoji quick phrases mangle text in preview box HOT 2
- Missing git tag for 5.1.7 release
- Coverity finding clean up (2024/1/17)
- kcm_fcitx5 is not work on plasma 6 HOT 1
- Fcitx5 overwrites read-only config files, breaking immutable configuration managers like Nix HOT 1
- 最新的arch上fcitx5-git让原本能用的xfce4-terminal --drop-down终端不再能使用fcitx5 HOT 6
- wayland下,fcitx5仅在chrome首次启动时正常工作 HOT 1
- wayland v2: don't commit preedit string on deactivation
- wayland v2: don't release pressed keys without user input HOT 11
- qt: input window position lags behind one key press HOT 1
- arcolinuxb deepin fcitx5 输入法不能用 HOT 5
- fcitx5-qt导致Plasma 6中基于KDE-Qt6的应用程序崩溃 HOT 1
- 当焦点在 Chrome、Electron 时重启 fcitx5,会导致 Chrome、Electron 不能打开任何菜单 HOT 10
- Let upstream "Qt Base" include fcitx-qt, so Qt AppImage users won't struggle with IME | 让上游Qt的"Qt Base"接受包含fcitx-qt,以使Qt AppImage用户能用输入法 HOT 2
- include-what-you-use导致fcitx5-android编译失败
- Crash when mapping dead keys to invalid unicode characters HOT 1
- `fcitx::InputBuffer::charAt(1)` returns bogus values HOT 3
- Navicat中, 中文输入法不可用 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcitx5.