Kimiblock / snotify

Play sounds when reciving a notification.
GNU General Public License v2.0
2 stars 0 forks source link

Sound without notification daemon #2

Open lodgerz opened 4 weeks ago

lodgerz commented 4 weeks ago

hello, I tried snotify and noticed that it only works if I have a notification daemon activated, otherwise the notifications are seen but do not make any sound. Is it possible to make this work with libnotify alone? Thank you.

Kimiblock commented 3 weeks ago

snotify monitors dbus to check if there is any notification. This daemon is mainly designed for GNOME so I don’t know what will happen if notification daemons aren’t running.

You can play with dbus-monitor to see what happens though.

-- Sincerely, Kimiblock

lodgerz commented 3 weeks ago

snotify monitors dbus to check if there is any notification. This daemon is mainly designed for GNOME so I don’t know what will happen if notification daemons aren’t running. You can play with dbus-monitor to see what happens though. -- Sincerely, Kimiblock

thanks for the reply, but I have no idea what dbus-monitor is. I googled but I didn't understand anything ^_^''

Kimiblock commented 3 weeks ago

dbus-monitor path='/org/freedesktop/Notifications'

-- Sincerely, Kimiblock

lodgerz commented 3 weeks ago
$ dbus-monitor path='/org/freedesktop/Notifications'
signal time=1718013605.527086 sender=org.freedesktop.DBus -> destination=:1.57 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.57"
signal time=1718013605.527100 sender=org.freedesktop.DBus -> destination=:1.57 serial=4294967295 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.57"

when I receive a notification from chromium the output does not change

I don't use gnome or any DE, just openbox. and i have no /usr/share/dbus-1/services/org.freedesktop.Notifications.service file. I don't want to use a notification daemon because I don't like them aesthetically (I've tried several: notification-daemon, lxqt-notificationd, mate-notification-daemon, xfce4-notifyd).

Kimiblock commented 3 weeks ago

Then unless someone can figure out how notifications work on your system, snotify won't perform on it.

I'm not sure how notifications display without a daemon. Not using a daemon sounds like an X Y problem to me though.

-- Sincerely, Kimiblock

lodgerz commented 3 weeks ago

probably if there is no notification daemon Chromium uses its own notification system, which however has no sound on Linux.