I'm trying to add fcitx5 as a runit service so I can have a japanese input method without having to manually start fcitx5 every time.
I made /etc/runit/sv/fcitx5_custom with:
#!/bin/sh
exec /usr/local/bin/fcitx5_custom >/home/me/debug 2>&1
where fcitx5_custom is just:
#!/bin/bash
export USER="me"
export HOME="/home/$USER"
export USERID=$(id -g $USER)
export XDG_RUNTIME_DIR=/run/user/$USERID
/usr/bin/fcitx5
This isn't working; the logs in ~/debug look fine except for:
E2026-01-22 18:07:53.841075 addonloader.cpp:96] Failed to create addon: dbus Failed to connect to session dbus
I2026-01-22 18:07:53.841095 addonmanager.cpp:200] Could not load addon dbus
So the issue seems to be dbus. Of course I can run fcitx5 manually and everything works normally, but I'd like it to work as a runit service. Can anyone help?