没有不值得去解决的问题,也没有不值得去学习的技术!

Troubleshooting Ubuntu 26.04 Input Methods: From Fcitx5 Autostart Failure to Stable Wubi-Pinyin

Figure 1: No input method icon in the top-right corner after reboot

Preface

I recently upgraded my ThinkPad T570 to Ubuntu 26.04 (habitually abbreviated as Ubuntu 26), which uses Wayland by default. As a Wubi user, my top priority is mixed Wubi-Pinyin input—using Wubi normally, and switching to Pinyin directly when I forget a code. After trying out IBus, Sogou, and Fcitx5, I ultimately settled on Fcitx5 + the built-in Wubi-Pinyin, and resolved the annoying issue of the input method icon failing to appear after a reboot. Below, I share the entire troubleshooting and resolution process according to the timeline of my screenshots, as a reference for anyone facing the same struggle.

1. Identifying the Problem: The Input Method Icon Disappeared

After installing the system, along with fcitx5 and fcitx5-chinese-addons, I changed the keyboard input method system to fcitx5 in “Language Support” and was able to type normally. However, after rebooting the computer, the top-right corner was completely blank (see Figure 1).

Figure 1: No input method icon in the top-right corner after reboot

When I opened the Fcitx Configuration tool, a red prompt popped up: “Cannot connect to Fcitx via DBus. Is Fcitx running?” (see Figure 2). Clearly, Fcitx5 hadn’t started at all.

Figure 2: Fcitx Configuration tool reports a connection failure

I had to click “Run Fcitx 5” to start it manually. Once started, the input method icon appeared in the top-right corner, and clicking it revealed the “Pinyin” and “Wubi-Pinyin” options (see Figure 3). I could type normally at this point, but having to run it manually after every reboot was too cumbersome.

Figure 3: Input method menu appears after manual launch

2. Checking the Framework Configuration: im-config Shows Normal

First, I suspected the input method framework wasn’t switched correctly. I opened the terminal and ran im-config, with the output shown in Figure 4. The Active configuration shows 'fcitx5', indicating that the framework setting is correct.

Figure 4: im-config shows the current configuration as fcitx5

When proceeding to the next step, im-config popped up a dialog asking whether to specify user settings (see Figure 5). I selected “Yes”.

Figure 5: im-config asks whether to apply user settings

Then, the interface for selecting the input method framework appeared (see Figure 6), listing ibus, fcitx5, none, and xim. I confirmed that fcitx5 was already selected, so there was no issue.

Figure 6: Input method framework selection interface
Figure 6: Input method framework selection interface

Since the framework configuration was correct, the problem likely lay in auto-start or tray icon support under Wayland.

3. Solution: A Three-Step Complete Fix

1. Add Auto-Start on Boot

Ubuntu’s “Startup Applications” tool allows you to add auto-start entries. I opened the system menu (see Figure 7)—should I log out and back in first? No, configure auto-start first.

Figure 7: Log out / restart options in the system menu

Specific steps:

  • Press the Super key to search for “Startup Applications” and open it.
  • Add an entry: Name Fcitx5, Command fcitx5.
  • Alternatively, do it directly via the command line (in one step):
Bash
  mkdir -p ~/.config/autostart
  cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/

2. Enable the AppIndicator Extension Under Wayland

Because Ubuntu 26 uses Wayland by default, and system tray icons under Wayland require GNOME Shell extension support. Execute:

Bash
gnome-extensions enable ubuntu-appindicators@ubuntu.com

Then log out and log back in.

3. Configure Environment Variables

Edit ~/.pam_environment, and add:

Plaintext
GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE DEFAULT=fcitx
XMODIFIERS DEFAULT=@im=fcitx
INPUT_METHOD DEFAULT=fcitx
SDL_IM_MODULE DEFAULT=fcitx

Save the file, then log out and log back in.

After completing these three steps, log out and back in. The input method icon will appear automatically in the top-right corner, and Wubi-Pinyin can be switched normally. At this point, the problem is solved. See Figure 10.

After logging out and back in, the input method icon appears automatically in the top-right corner, and Wubi-Pinyin switches normally. The problem is now solved.

4. Why I Didn’t Choose Sogou Input Method

During this process, I also checked the official Sogou website for the Linux version (see Figure 8). The latest version, v4.2.1, was released in 2023 (see Figure 9) and supports Ubuntu 20.04/18.04/16.04; its compatibility with a new system like 26.04 is unknown. Furthermore, Sogou is based on the older Fcitx 4, which is incompatible with Fcitx 5. Forcing an installation is prone to crashes. Considering stability, I set it aside for now.

Figure 8: Sogou Input Method official download page

Figure 9: Sogou Input Method update log

If Sogou officially releases a new version based on Fcitx 5 one day, I might give it another try.

5. Comparison of Input Method Solutions (Personal Subjective Evaluation)

SolutionMixed Wubi-PinyinDictionary RichnessStability (Ubuntu 26)Cloud SyncRecommendation
Fcitx5 + Wubi-Pinyin✅Medium (sufficient)⭐⭐⭐⭐⭐❌⭐⭐⭐⭐⭐
IBus + ibus-libpinyin❌High⭐⭐⭐⭐❌⭐⭐ (no Wubi)
IBus + ibus-table-wubi❌ (pure Wubi)Medium⭐⭐⭐⭐❌⭐⭐ (no mixed input)
Sogou Input Method Linux✅Very high⭐⭐ (prone to crashes)✅⭐⭐
Fcitx5 + Rime✅ (requires configuration)Customizable⭐⭐⭐⭐❌ (manual sync possible)⭐⭐⭐⭐ (for tinkerers)

6. Next Steps: Tinkering with Rime

Although the Wubi-Pinyin bundled with Fcitx5 is stable, its dictionary isn’t “smart” enough, and it lacks cross-device syncing. Rime (Zhongzhouyun) is a highly customizable input method engine that supports mixed Wubi-Pinyin input and can import Sogou cell dictionaries. I am already planning to:

  • Install fcitx5-rime on Fcitx5.
  • Configure the “Rime Ice” (雾凇拼音) schema (an excellent Rime configuration set).
  • Try importing my own dictionaries to achieve a memory effect similar to Sogou’s.

Once I succeed in setting it up, I’ll write another detailed blog post about configuring Rime.

7. Summary

If you also encounter the issue of Fcitx5 failing to start and its icon disappearing after a reboot on Ubuntu 26.04, check the following in order:

  1. Verify the input method framework: Set im-config to fcitx5, and click “Apply to Entire System” in “Language Support”.
  2. Add auto-start on boot: Copy the .desktop file to ~/.config/autostart/.
  3. Enable the AppIndicator extension under Wayland: gnome-extensions enable ubuntu-appindicators@ubuntu.com.
  4. Configure environment variables (optional, but helps with compatibility): Edit ~/.pam_environment.

After doing this, log out and log back in, and everything should work normally. I hope this record, written in the order of the screenshots, helps you if you’ve been similarly stuck.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系