Skip to content

Commit

Permalink
Dont register dbus when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypw committed Nov 24, 2024
1 parent 463d6ac commit b1f2029
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ stdout.printf ("# return -1 \n");
}

protected override bool dbus_register (DBusConnection connection, string object_path) throws Error {
stdout.printf ("# App dbus register \n");
if (is_testing) {
return true;
}
base.dbus_register (connection, object_path);

var dbus = new DBus ();
Expand Down Expand Up @@ -322,7 +324,6 @@ stdout.printf ("#presenting window\n");
}

protected override void dbus_unregister (DBusConnection connection, string path) {
stdout.printf ("# App dbus unregister \n");
if (dbus_id != 0) {
connection.unregister_object (dbus_id);
}
Expand Down

0 comments on commit b1f2029

Please sign in to comment.