GNOME Bugzilla – Bug 646257
dbus: Avoid losing org.freedesktop.Notifications on replacement
Last modified: 2011-04-13 13:44:04 UTC
We weren't specifying _ALLOW_REPLACEMENT for anything except org.gnome.Shell, which created a race - if the exiting process didn't exit fast enough, the replacing process would fail to get the name.
Created attachment 184726 [details] [review] dbus: Avoid losing org.freedesktop.Notifications on replacement
This can wait to 3.0.1 probably.
Moving off the blocker list, then
Comment on attachment 184726 [details] [review] dbus: Avoid losing org.freedesktop.Notifications on replacement > * Xephyr */ hm... that's a suspicious bit of patch context. It looks like the comment here was not properly updated when I removed --xephyr. Can you fix that too while you're there? > if (!dbus_g_proxy_call (bus, "RequestName", &error, > G_TYPE_STRING, "org.freedesktop.Notifications", >- G_TYPE_UINT, DBUS_NAME_FLAG_REPLACE_EXISTING | DBUS_NAME_FLAG_DO_NOT_QUEUE, >+ G_TYPE_UINT, request_name_flags, If notification-daemon accidentally got activated somehow before gnome-shell, this would prevent the normal gnome-shell session from starting. I think you want "DBUS_NAME_FLAG_REPLACE_EXISTING | request_name_flags" on this one.
(In reply to comment #4) > (From update of attachment 184726 [details] [review]) > > * Xephyr */ > > hm... that's a suspicious bit of patch context. It looks like the comment here > was not properly updated when I removed --xephyr. Can you fix that too while > you're there? Actually this revealed that we should be always specifying REPLACE_EXISTING for org.gnome.panel too. > If notification-daemon accidentally got activated somehow before gnome-shell, > this would prevent the normal gnome-shell session from starting. I think you > want "DBUS_NAME_FLAG_REPLACE_EXISTING | request_name_flags" on this one. Good point, fixed.
Created attachment 185817 [details] [review] dbus: Avoid losing org.freedesktop.Notifications on replacement Always REPLACE_EXISTING for non-primary names
Attachment 185817 [details] pushed as 42e26a8 - dbus: Avoid losing org.freedesktop.Notifications on replacement