Open hanubeki opened 5 years ago
I think this is a dbus thing.
I ran dbus-launch --exit-with-x11
and copy DBUS_SESSION_BUS_ADDRESS
line then export
copied line and run fcitx-autostart &
and I can now input Japanese characters.
Edit: I found an easier workaround: dbus-launch fcitx-autostart
eval "$(dbus-launch --auto-syntax)"
writes a result of dbus-launch --auto-syntax
to /etc/profile.d/dbus.sh
and not acutually run dbus-launch --auto-syntax
in dbus.sh.
https://github.com/WhitewaterFoundry/pengwin-setup/blob/c54041dccdcb39043105e49209dabe17b89beabc/pengwin-setup.d/fcitx.sh#L82
Also, fcitx-autostart &>/dev/null
is wrote to /etc/profile.d/fcitx
, not /etc/profile.d/fcitx.sh
.
Hello,
Thank you for reporting and also find the solution. We will work soon in this issue and incorporate the patches for the next release.
Regards
Hi, the content above was posted in July. Is there a fix yet? I had just installed pengwin & fcitx and experienced the same issue. What is the best way I can get it fcitx working every time I started up pengwin without manually entered commands?
temporarily, I put the following line in ~/.profile
dbus-launch /usr/bin/fcitx-autostart > /dev/null 2>&1
I would like to know if there is a better fix?
Hello @eliranwong
We will check ans get back with a solution, probably we need to add something to /etc/profile. For any reason we miss to resolve this for 1.3 release.
Regards
Hello @crramirez
Thanks for reply.
I would like to share one more observation. I tried to put "dbus-launch fcitx-autostart" in some other locations. Though fcitx can run, word candidate/selection panel failed to be displayed.
For example, I tried using zsh as default shell and put a line "dbus-launch /usr/bin/fcitx-autostart > /dev/null 2>&1" in ~/.zprofile. As I type Chinese, fcitx is running but I do not see word selection panel, so I cannot select the right Chinese words to be entered.
any ideas?
Regards
After testing fcitx with different gui applications, I found that fcitx is very broken in some applications running under pengwin. To solve the issue, I installed ibus. It seems ibus works perfectly under pengwin, at least for typing Chinese. iBus comes to the rescue where fcitx is broken. So I now switch to ibus for main input method as my solution.
Excellent thank you for sharing it. We will put it in our road map
Describe the bug I have installed Pengwin today, with fcitx and mozc input method. When I installed fcitx, input method list is displayed in configuration, then I could add "Mozc - Japanese". But after I restarted WSL, fcitx mozc is not working, fcitx configuration doesn't even show input method list.
Also, following warning is displayed after run
fcitx-autostart &
every few seconds(Japanese part of the message means "Connection refused")
To Reproduce Steps to reproduce the behavior:
ja_JP.UTF-8
and set as defaultsudo apt update
,sudo apt upgrade
,sudo apt autoremove
exit
wsl -t WLinux
in PowerShell Core 6sudo apt install libreoffice libreoffice-gtk2 libreoffice-l10n-ja libreoffice-help-ja firefox-esr-l10n-ja
I tried
sudo service dbus restart
anddbus-launch --exit-with-x11
thenfcitx-autostart &
but I still can't input Japanese characters.Expected behavior Input method should be switched and can input Japanese characters.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Basic Troubleshooting Checklist
What other troubleshooting have you attempted?
Insert here:
Pengwin Version
Find: Settings->Apps->Apps & features->Pengwin->Advanced Options->Version.
Insert here:
1.2.5.0
Windows Build
Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:
For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number