main: Allow replacement of org.gnome.Shell name
This was an oversight in the previous commit; if we don't do this, then we just can't --replace. https://bugzilla.gnome.org/show_bug.cgi?id=645593
This commit is contained in:
parent
c91b716a63
commit
090d54516e
@ -52,7 +52,7 @@ shell_dbus_init (gboolean replace)
|
|||||||
DBUS_PATH_DBUS,
|
DBUS_PATH_DBUS,
|
||||||
DBUS_INTERFACE_DBUS);
|
DBUS_INTERFACE_DBUS);
|
||||||
|
|
||||||
request_name_flags = DBUS_NAME_FLAG_DO_NOT_QUEUE;
|
request_name_flags = DBUS_NAME_FLAG_DO_NOT_QUEUE | DBUS_NAME_FLAG_ALLOW_REPLACEMENT;
|
||||||
if (replace)
|
if (replace)
|
||||||
request_name_flags |= DBUS_NAME_FLAG_REPLACE_EXISTING;
|
request_name_flags |= DBUS_NAME_FLAG_REPLACE_EXISTING;
|
||||||
if (!dbus_g_proxy_call (bus, "RequestName", &error,
|
if (!dbus_g_proxy_call (bus, "RequestName", &error,
|
||||||
|
Loading…
Reference in New Issue
Block a user