Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down Expand Up @@ -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);
Expand Down