Skip to content

Commit

Permalink
Finially fix fcitx5 autostart
Browse files Browse the repository at this point in the history
This took 10 hours of debugging.
Details will be at fcitx/fcitx5#704
It took so many logins and killall5s, reading various scripts' source
codes, looking in /proc/pid/environ and /proc/pid/fd, ldd+strings+rg,
installing and setting up auditd, systemctl --user show, and general
frustration.

It turns out fcitx5 can be started from 3 places: im-config, .desktop
autostarts, systemd user autostarts, and kwin wayland, and they
conflict with each other.
In the end I chose to let kwin_wayland handle it, and now fcitx5 is
detecting Wayland properly.
  • Loading branch information
danielzgtg committed Jan 28, 2023
1 parent 2bddacc commit d594567
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
15 changes: 0 additions & 15 deletions home/.config/autostart/org.fcitx.Fcitx5.desktop

This file was deleted.

3 changes: 3 additions & 0 deletions home/.config/kwinrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Wayland]
InputMethod[$e]=/usr/share/applications/org.fcitx.Fcitx5.desktop
VirtualKeyboardEnabled=true
2 changes: 2 additions & 0 deletions home/.xinputrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Take back control from im-config
run_im none

0 comments on commit d594567

Please sign in to comment.