Skip to content

Silence fcitx5 startup layout tip notifications - #10578

Closed
crwirth wants to merge 1 commit into
omacom:quattrofrom
crwirth:fix/10474-fcitx5-disable-notifications
Closed

crwirth wants to merge 1 commit into
omacom:quattrofrom
crwirth:fix/10474-fcitx5-disable-notifications

Conversation

@crwirth

@crwirth crwirth commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Fixes #10474.

Omarchy runs fcitx5 only for CapsLock compose (~/.XCompose). The user unit already disabled notificationitem (tray duplicate of the Omarchy shell) but left the notifications addon enabled. The keyboard addon optionally depends on that module and fires freedesktop tips on layout/IM startup — the boot notification reported in the issue.

Allow Overriding System XKB Settings=False is already shipped in config/fcitx5/conf/xcb.conf (the issue's suggested workaround for XKB ownership). That does not stop the tip channel.

Change

  • default/systemd/user/omarchy-fcitx5.service:
    ExecStart=/usr/bin/fcitx5 --disable notificationitem,notifications
  • migrations/1788745469.sh: daemon-reload + restart when a graphical session is live
  • test/shell.d/systemd-test.sh: assert both addons are disabled

Evidence

Bug reproduced

$ systemctl --user cat omarchy-fcitx5.service | rg ExecStart
ExecStart=/usr/bin/fcitx5 --disable notificationitem

$ cat config/fcitx5/conf/xcb.conf
Allow Overriding System XKB Settings=False

$ rg notifications /usr/share/fcitx5/addon/keyboard.conf
2=notifications

Unit only silenced the tray; keyboard→notifications path still active. XKB override already present and insufficient for the tip.

Fix validated

bash test/shell.d/systemd-test.sh
# includes: fcitx5 runs supervised...
# asserts: ExecStart=... --disable notificationitem,notifications

Test plan

  • Pre-fix unit only disables notificationitem
  • bash test/shell.d/systemd-test.sh
  • Manual: reboot / restart omarchy-fcitx5.service with multi-layout fcitx profile — no layout tip notification; CapsLock compose still works

Omarchy runs fcitx5 only for CapsLock compose sequences. The unit already
disabled notificationitem (tray duplicate) but left the notifications
addon enabled, so the keyboard module still fired freedesktop tips on
layout/IM startup (issue #10474).

Disable notifications alongside notificationitem. XKB override remains
off via config/fcitx5/conf/xcb.conf. Migrate existing sessions with a
daemon-reload and conditional restart.

Fixes #10474

Signed-off-by: fresh3nough <[email protected]>
@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for picking this up. This does stop the notification in #10474, but the open PR #11447 fixes the same thing closer to its cause, so this one is waiting on the maintainer to choose between the two.

What was checked, against fcitx5's Wayland module source (src/modules/wayland/waylandmodule.cpp): the "Wayland Diagnose" notification comes from WaylandModule::selfDiagnose(), not from the keyboard addon. Its layout warning fires only when the Wayland addon's Allow Overriding System XKB Settings is on and fcitx5 has groups with different layouts. config/fcitx5/conf/xcb.conf sets that option only for the XCB addon; the Wayland addon reads its own conf/wayland.conf, which Omarchy does not ship, so the override is still on.

  • This PR: --disable notifications makes selfDiagnose() return early, so the notification goes away, but so does every other fcitx5 notification. The comments in omarchy-fcitx5.service and migrations/1788745469.sh attribute the tip to the keyboard addon and say the XKB override is already off, which is not the case for Wayland.
  • Ship fcitx5 wayland.conf so layouts are not pushed to the compositor #11447: ships config/fcitx5/conf/wayland.conf with the override off, which skips exactly that warning and leaves other notifications alone. On Hyprland the override does nothing useful anyway, since fcitx5 only pushes layouts to KDE and GNOME. It has no migration yet, so as it stands it would reach only new installs.

Nothing was run on a worker for this PR, since only one of the two fixes should land and verification goes to that one. The second opinion, Codex Medium, was given both PRs and the fcitx5 source without my conclusion. It chose #11447 for the same reasons, and it also confirmed independently that #11447 needs a migration for existing installs. Its agreement is not guaranteed to be independent of this review.

@crwirth crwirth closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fcitx5 notification on startup

2 participants