I use arch linux with i3wm. My notifications does not work. When I type dunst in to command line it responds whith:
WARNING: No dunstrc found.
When I type notify-send --icon=gtk-info Test "This is a test" or dunstify --action="replyAction,reply" "Message received" it keeps running until I kill it with crt+c while no notification shows up.
This content of /etc/X11/xinit/xinitrc.d/30-dbus.sh file:
#!/bin/bash
# launches a session dbus instance
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && type dbus-launch >/dev/null; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
This is in my journalctl:
18:57:43 arch-thinkpad systemd[562]: Starting Dunst notification daemon...
18:57:43 arch-thinkpad dunst[49939]: CRITICAL: Cannot open X11 display.
18:57:43 arch-thinkpad systemd[562]: dunst.service: Main process exited, code=exited, status=1/FAILURE
18:57:43 arch-thinkpad systemd[562]: dunst.service: Failed with result 'exit-code'.
18:57:43 arch-thinkpad systemd[562]: Failed to start Dunst notification daemon.
18:59:43 arch-thinkpad dbus-daemon[708]: [session uid=1000 pid=708] Failed to activate service 'org.freedesktop.Notifications': timed out (service_start_timeout=120000ms)
18:59:43 arch-thinkpad dbus-daemon[708]: [session uid=1000 pid=708] Activating via systemd: service name='org.freedesktop.Notifications' unit='dunst.service' requested by ':1.112' (uid=1000 pid=17718 comm="/usr/lib/electron/electron /usr/bin/caprine ")
How can I fix this so programs can show notification throw dunst ?
Thank you for help
EDIT1: The No dunstrc found. error has been fiex whith this command: cp /usr/share/dunst/dunstrc ~/.config/dunst/dunstrc