Closed ndrew222 closed 2 months ago
Did you follow the steps here? Specifically adding the udev rule and adding input
and uinput
to your user's groups? (Also make sure to restart)
fixed it by changing kanata.service
to
[Unit]
Description=Kanata keyboard remapper
Documentation=https://github.com/jtroo/kanata
[Service]
Environment=PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:${HOME}/.local/bin
Environment=DISPLAY=:0
Type=simple
ExecStart=/usr/bin/sh -c "exec $HOME/.local/bin/kanata --cfg $HOME/.config/kanata/config.kbd"
Restart=no
[Install]
WantedBy=default.target
Requirements
Describe the bug
kanata fails to run when summoned using
systemctl --user start kanata.service
, but runs properly when invoked usingsudo /usr/bin/sh -c "exec $(which kanata) --cfg $HOME/.config/kanata/config.kbd"
Relevant kanata config
kanata.kbd
kanata.service
To Reproduce
mkdir -p ~/.config/systemd/user && cd ~/.config/systemd/user
nvim kanata.service
and paste above textsystemctl --user daemon-reload
systemctl --user start kanata.service
systemctl --user status kanata.service
Expected behavior
kanata should run properly and allow me to tap
caps
foresc
and hold forlctl
Kanata version
kanata 1.6.1
Debug logs
systemctl --user status kanata.service
sh -c 'exec $(which kanata) --cfg $HOME/.config/kanata/config.kbd'
$ sudo sh -c "exec $(which kanata) --cfg $HOME/.config/kanata/config.kbd"
Operating system
Linux (Debian 12)
Additional context
I have checked the discussion #130 but does not seem to help