Skip to content

Conversation

Ahmad-Alsaleh
Copy link

The original script gives the error: /usr/bin/sh: 1: exec: --cfg: not found.

This is because $HOME wasn't expanded correctly in: Environment=PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:$HOME/.cargo/bin
Which would make which kanata fail in: ExecStart=/usr/bin/sh -c 'exec $$(which kanata) --cfg $${HOME}/.config/kanata/config.kbd'

A simple fix is to replace $HOME with %h, systemd's $HOME placeholder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant