I want to add some cronjobs in my system. For notify-send to work, I need to add the below command in my crontab file:
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus; [path/to/script]
But there is no bus socket in the /run/user/1000/ directory:
$ ls -a /run/user/1000
. .. dbus-1 dconf doc gnupg keyring pulse pipewire-0 pipewire-0.lock
$ pacman -Q | grep dbus
dbus 1.14.6-2
dbus-glib 0.112-2
dbus-python 1.2.18-3
dbus-runit 20220314-1
libdbusmenu-glib 16.04.0-5
libdbusmenu-gtk3 16.04.0-5
xdg-dbus-proxy 0.1.4-1
$ sv status dbus
run: dbus: (pid 846) 1806s; run: log: (pid 844) 1806s
How can I solve this issue?