From 024d93375b45601ec359c928528034caaf1c0a70 Mon Sep 17 00:00:00 2001 From: lenemter Date: Mon, 6 Oct 2025 11:30:04 +0300 Subject: [PATCH] Application: don't allow replacement --- src/Application.vala | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Application.vala b/src/Application.vala index 9685a898..ae6d21ff 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -25,7 +25,7 @@ public class Notifications.Application : Gtk.Application { public Application () { Object ( application_id: "io.elementary.notifications", - flags: ApplicationFlags.IS_SERVICE | ApplicationFlags.ALLOW_REPLACEMENT + flags: ApplicationFlags.IS_SERVICE ); } @@ -61,15 +61,10 @@ public class Notifications.Application : Gtk.Application { context.open (); - var dbus_flags = BusNameOwnerFlags.DO_NOT_QUEUE | BusNameOwnerFlags.ALLOW_REPLACEMENT; - if (ApplicationFlags.REPLACE in flags) { - dbus_flags |= BusNameOwnerFlags.REPLACE; - } - Bus.own_name_on_connection ( get_dbus_connection (), "org.freedesktop.Notifications", - dbus_flags, + DO_NOT_QUEUE, () => hold (), (conn, name) => { critical ("Could not aquire bus: %s", name);