Hi Nikos,

sorry for the late reply, and thanks for the detailed explanations. I
just rebooted my system, and realized that dunst is back there ;-)

> The autostart part of dunst is managed by dbus, specifically the 
> auto-activation
> feature. Unfortunately dbus is not as powerful of a service manager as systemd
> and it doesn't have a way to prioritise one service over another, or a way to
> disable one while still keeping it installed.
> 
> So what can be done now?

Is there a way to claim that interface/service somehow? I am thinking of
other cinnamon users (since I am one of the maintainers of Cinnamon in
Debian), and how Cinnamon could stop dbus from starting another
notification daemon, when the one from cinnamon is already running.
Is there a way for this? 
Or is it anyway too late, because the notification service is started
already before the cinnamon session is started? (during xsession
somewhere)?

> I don't see a way to solve this other than removing the dbus service file
> entirely, but for this to work and not break a lot of other systems we have to
> auto-enable dunst for all desktop users on install

Mumumu, not a nice solution, indeed.

> started. So it leaves the only option of having an auto-restart on failure 
> every
> X seconds (pretty ugly approach IMO, and it's going to spam the error logs if 
> no
> graphical session is started for a while).

No, that is even worse.

> Any other suggestions?

Not really anything better than learning how to claim the dbus faster
than dunst?

> From your side you can remove the service file at
> /usr/share/dbus-1/services/org.knopwob.dunst.service and have the i3 users
> enable dunst via systemd or enable it globally and disable it for yourself.

Removing the file is a bit bad an idea, because the next upload will
again bring it in.

Is there a way to "shadow"/disable it, similar to shadowing of systemd
units?

Best

Norbert

--
PREINING Norbert                              https://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13

Reply via email to