Change kde default notifications system for dunst

I was trying to get dunst into my system… but when i run the command this line appears:

CRITICAL: [dbus_cb_name_lost:1152] Cannot acquire 'org.freedesktop.Notifications': Name is acquired by 'Plasma' with PID '907'.

I checked the FAQ on the official dunst guide but there is no guide to solve this error.

Notification servers

Built-in

Cinnamon, Deepin, Enlightenment, GNOME, GNOME Flashback and KDE Plasma use their own implementations to display notifications, and it cannot be replaced. Their notification servers are started automatically on login to receive notifications from applications via DBus.

https://wiki.archlinux.org/title/Desktop_notifications

Okay, so I add a file in (/usr/share/dbus-1/services or $XDG_DATA_HOME/dbus-1/services)
With this name org.freedesktop.Notifications.service

And inside of it this code.?

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon-1.0/notification-daemon

This ^

Dunst as default notification should work for me. You must keep the KDE notification service.

I think you probably deleted the KDE notification service.

  1. Reinstall plasma-workspace to restore it.
  2. Reinstall dunst and remove a dunst service as a duplicate:
    $ sudo rm /usr/share/dbus-1/services/org.knopwob.dunst.service