Repository navigation
Keep the fcitx5 unit inert when fcitx5 isn't installed - #11694
Conversation
fcitx5 is in omarchy-base.packages, but a trimmed or derived image can ship the unit without the binary, and first-run/enable-user-units.sh enables this unit unconditionally either way. With Restart=always and RestartSec=2, that install spends its whole session failing at 203/EXEC twice a second. On the aarch64 image I found this on, the unit had restarted 20,943 times in one session and accounted for 105,828 journal lines, which is most of what the log contains. enable-user-units.sh already says ConditionPath* in the unit files is what keeps an enabled unit inert where it does not apply, and omarchy-tailscale-receive.service guards its binary exactly this way. This unit was missing its half of that. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01ALLhsWEVznJX5Js4CM59ZV
Removing ConditionPathExists=/usr/bin/fcitx5 left every existing fcitx5 assertion in systemd-test.sh passing, so the restart loop could come back unnoticed. The comment said the unit fails twice a second; RestartSec=2 makes it once every two seconds, which is what a worker without the binary showed (13 restarts in 30s). Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]>
|
|
Reviewed and verified on a disposable Omarchy worker (x86_64, systemd 261, live Hyprland session), with
I pushed one commit, 5b6b9f2, with two small fixes:
Second opinion: Codex Medium reviewed both rounds. It raised the two points above, found nothing else, and found nothing left on the current head. It can read this session's reasoning, so its agreement is not guaranteed to be independent. No competing pull request touches this unit. Waiting on the maintainer. |
omarchy-fcitx5.servicehasRestart=alwayswithRestartSec=2andExecStart=/usr/bin/fcitx5.fcitx5is inomarchy-base.packages, but a trimmed or derived image can ship the unit without the binary — andinstall/user/first-run/enable-user-units.shenables the unit unconditionally either way. When the binary isn't there, the unit fails at203/EXECand systemd retries it forever.On the aarch64 image I hit this on:
That is most of what the session's journal contains, and it runs for as long as the session does.
enable-user-units.shalready documents the mechanism this unit was missing:omarchy-tailscale-receive.serviceguards its binary exactly this way withConditionPathExists=/usr/bin/tailscale. This adds the same guard here, so the unit stays enabled and simply doesn't run where fcitx5 is absent.🤖 Generated with Claude Code
https://claude.ai/code/session_01ALLhsWEVznJX5Js4CM59ZV