How can I get a notification to show in the notification center from a bash script?

I’ve got a script I want to get notifications via KDE connect and on my desktop. And I’m having trouble getting it to appear here. What do I need to do?

maybe something is in dbus?

notify-send "Hello world"

In the image. I have shown that using notify-send "notification" doesn’t produce my desired outcome.

It displays a notification… but not in the kde notifications.

See:

Here’s one where I use the option to send a message then waited for the timeout. Then sent another so I can take a screenshot (I cleared the messages before doing this series of commands btw).

you need to install notify-send, what distribution do you use
?

sudo apt-get --reinstall install libnotify-bin notify-osd

for debian based distros

Opensuse Tumbleweed.

System Settings > Notifications > Application Settings (top-right in the toolbar) > Other Applications > Show in history


2 Likes

Thank you!