Merge lp:~larsu/notify-osd/allow-being-replaced into lp:notify-osd

Proposed by Lars Karlitski
Status: Merged
Approved by: Mirco Müller
Approved revision: 472
Merged at revision: 472
Proposed branch: lp:~larsu/notify-osd/allow-being-replaced
Merge into: lp:notify-osd
Diff against target: 12 lines (+1/-1)
1 file modified
src/dbus.c (+1/-1)
To merge this branch: bzr merge lp:~larsu/notify-osd/allow-being-replaced
Reviewer Review Type Date Requested Status
Mirco Müller (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+192990@code.launchpad.net

Commit message

Allow being replaced by a different notification service

Description of the change

Allow being replaced by a different notification service

To post a comment you must log in.
Revision history for this message
Lars Karlitski (larsu) wrote :

Mirco, it would be cool if the service would exit when it lost the name. Do you mind adding that on top of this branch?

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mirco Müller (macslow) wrote :

As far as I understand DBus (and the "RequestName" method with its corresponding flags) I need to change our new notification-backend (lp:unity-notifications) to set DBUS_NAME_FLAG_REPLACE_EXISTING when requesting to take over the notification-service.

Just digging through Qt's QDBusConnection-docs to see how that would work. I'll be putting up a branch for it (and linking it here too) once I have that working and tested with your notify-osd branch.

Revision history for this message
Mirco Müller (macslow) wrote :

Just now chatted with Saviq and also saw you already have the needed branch for unity-notifications. I'm now looking into notify-osd cleanly exiting once unity8 took over the notification-service.

Revision history for this message
Mirco Müller (macslow) wrote :

See https://code.launchpad.net/~macslow/notify-osd/exit-if-being-replaced/+merge/193121 which builds upon your branch and completes the implementation of the needed feature.

Revision history for this message
Mirco Müller (macslow) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/dbus.c'
2--- src/dbus.c 2009-08-26 11:17:55 +0000
3+++ src/dbus.c 2013-10-29 01:30:40 +0000
4@@ -74,7 +74,7 @@
5 "RequestName",
6 &error,
7 G_TYPE_STRING, service_name,
8- G_TYPE_UINT, 0,
9+ G_TYPE_UINT, DBUS_NAME_FLAG_ALLOW_REPLACEMENT,
10 G_TYPE_INVALID,
11 G_TYPE_UINT, &request_name_result,
12 G_TYPE_INVALID))

Subscribers

People subscribed via source and target branches