Repository navigation
Seed fcitx5 DefaultIM from vconsole XKBLAYOUT - #12920
chessing234 wants to merge 5 commits into
Conversation
|
The active-session migration can undo its own layout change at Stop fcitx5 before writing its new profileIn With native fcitx5 5.1.22 and a synthetic stock-US profile, the unmodified helper produced this sequence: Impact: an existing non-US installation updated from its desktop session can retain the original wrong layout despite a successful migration. The migration runner then records it as applied, so it does not automatically retry. The stopped-daemon case does not have this ordering problem. Suggested change: wait for the old fcitx5 process to finish stopping before the final profile write, then start it again when appropriate. Preserve the customized-profile guards and handle stop/write failures explicitly. Include shutdown persistence in the migration regression test; a restart stub that only records a call misses this overwrite. Verified: targeted helper cases covered French seeding, German Review informationTest scope: source review, synthetic configuration cases and native fcitx5 persistence with a private D-Bus session. Migration service/restart routing used stubs; the real systemd service and full installer were not run. Qt lock-screen typing, suspend/resume and non-Latin layout switching were not tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium initial inspection and synthesis, independent Opus 5.5 High and Astra Xhigh technical reviews, followed by verification against saved source and runtime evidence. |
4552647 to
f28b265
Compare
|
stop fcitx5 before rewriting the profile |
Automated AI review
Follow-up to the earlier review and the author's reply, checked at Resolved: the earlier finding "Stop fcitx5 before writing its new profile". Verified: native fcitx5 5.1.22 on a private D-Bus, stock US profile,
fcitx5 5.1.23 source keeps the same save-on-exit path ( Re-running the installer step leaves fcitx5 stoppedThe helper now stops fcitx5, but of its two callers only Impact: a manual Suggested change: restart what the helper stopped when a graphical session is active, either inside the helper (and drop the migration's separate restart) or in Stop failures still report
|
|
seed aborts if fcitx5 is still alive after the stop wait, so we do not print changed over a live process. |
Automated AI review
Follow-up to the previous review and the author's reply, checked at Resolved: the main part of the earlier finding "Stop failures still report Verified: sandboxed runs with real
The new check also introduces one regression, described below. The earlier review suggested this check without scoping it to the current user. The new exit also fires for another user's fcitx5
At Impact: limited to multi-user machines where another user's graphical session is open while this user runs migrations ( Suggested change: scope all three checks and the kill to the current user: This was shown with a stand-in that ignores SIGTERM, in the role of a process Paths that stop fcitx5 without starting it againThe helper stops fcitx5, but only the migration's success path starts it again. Three paths leave it stopped until the next login or
On these paths nothing starts fcitx5 again before the next login, despite the comment at lines 140-142. Impact: fcitx5 input methods and compose sequences stay off until the next login or a manual restart. Suggested change: have the helper start fcitx5 again on every exit once it has stopped or signalled it, when a graphical session is active (for example with an EXIT trap), and drop the migration's separate restart. This covers all three paths. It has not been tested. Optional test improvement: no test case exercises the new branch, because every case sets the Still applies: the Review informationTest scope: follow-up limited to the new commit, its callers and the earlier findings. Sandboxed runs used real procps against fixture-owned stand-ins named AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
|
|
fixed in cc07f76: all process checks and signals use the current uid, and the helper restores the session service on exit, including failed stops and writes. 17 fixture checks pass with regression controls for user scoping, stop-before-write ordering and cleanup; a real multi-user desktop and lock-screen run remains unverified. |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Heads-up for the maintainer: #14433 ("Unify input methods with installer keyboard selection") is now open and reworks fcitx5 setup around the installer's keyboard choice, with its own migration that runs |
|
Reviewed at What
That covers the cause of #8060 Bug A that this pull request targets. Landing both would also do harm. Its migration ( Nothing was run on a worker, because the code it would verify is not what This now waits on the maintainer, with the recommendation that it be closed as superseded by #14433. If a non-US install on current |
|
Thank you for this. What it does is now on On This was checked against |
Summary
DefaultIM/Default Layoutfrom/etc/vconsole.confXKBLAYOUT(same source as Hyprlandkb_layout), so lock-screen Qt fields stop typing US on non-US installs after wake.keyboard-usprofile; multi-IM setups are left alone. Fresh installs get the same seed viainstall/user/fcitx5-layout.sh.Test plan
bash test/shell.d/fcitx5-layout-seed-test.shXKBLAYOUT=fr): afteromarchy-migrate/ update,~/.config/fcitx5/profilehasDefaultIM=keyboard-fr; lock screen after sleep types FRkeyboard-us