Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disscussion on the environment variables setting of fcitx5 once more. #45

Closed
hongyi-zhao opened this issue Dec 7, 2020 · 4 comments
Closed
Labels

Comments

@hongyi-zhao
Copy link

I noticed the notes given here about the environment variables setting of fcitx5 as shown below:

wayland: ~/.pam_environment

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

x11: ~/.xprofile

export GTK_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
export QT_IM_MODULE=fcitx5
fcitx5 &

As you can see, the above settings will trigger the starting of fcitx5 for the x11 case in the ~/.xprofile but for the wayland case doesn't. I'm very confused on this. Any hints?

Regards,
HY

@mviereck
Copy link
Owner

mviereck commented Dec 7, 2020

I doubt that fcitx will run under Wayland at all because it uses X server technology.

Aside from that, Wayland will never run ~/.xprofile because it is not an X server.
You could run the commands in ~/.bashrc instead.

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Dec 7, 2020

What is the difference between using ~/.xprofile or ~/.bashrc for this case?

@mviereck
Copy link
Owner

mviereck commented Dec 7, 2020

This is something you could easily research on your own.
~./xprofile is started on X startup, ~/.bashrc is started on bash startup.

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Dec 12, 2020

Based on the notes given by the author of fcitx, the environment variables should be set ~/.xprofile, ~/.bashrc, ~/.profile, or some other similar places with the following form:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants