mate-desktop / mate-notification-daemon

Daemon to display passive pop-up notifications
https://mate-desktop.org
GNU General Public License v2.0
30 stars 26 forks source link

Notifitcation daemon starts for KDE #115

Open MingcongBai opened 7 years ago

MingcongBai commented 7 years ago

MATE Notification Daemon seems to start for KDE Plasma 5, and pops up notifications during the start up of KDE Plasma Desktop, it's kind of hard to get a screenshot in that stage of start up...

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39635403-notifitcation-daemon-starts-for-kde?utm_campaign=plugin&utm_content=tracker%2F1172660&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1172660&utm_medium=issues&utm_source=github).
raveit65 commented 7 years ago

This can also happen with xfce-notification-daemon ;-) All those daemons use dbus to display notifications from applications, but the implementation to prefer one daemon on a multi-desktop system is very poor an do/can not work. Sorry there is nothing what we can do.

yselkowitz commented 7 years ago

There is a solution: no org.fd.Notifications implementation should provide a .service file. Instead, each should autostart with the session (e.g. with an autostart .desktop file with OnlyShowIn) and remain active for the duration of the session (iow not quit on idle so as not to rely on dbus autolaunching).

Here is the patch I am using to disable exit-on-idle:

https://github.com/cygwinports/mate-notification-daemon/blob/master/1.14.0-no-exit-on-idle.patch

I'd be willing to add an autostart .desktop if this approach will be accepted.

raveit65 commented 1 year ago

Will be fixed with https://github.com/mate-desktop/mate-notification-daemon/pull/214

cwendling commented 1 year ago

@raveit65 it won't unless we remove D-Bus activation, which is not the last state of that PR.