mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
gdbusdaemon: Handle GetNameOwner for unique ids
Without this gmenumodel fails
This commit is contained in:
parent
ad77d7244f
commit
063cde5901
@ -930,6 +930,17 @@ handle_get_name_owner (_GFreedesktopDBus *object,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (arg_name[0] == ':')
|
||||||
|
{
|
||||||
|
if (g_hash_table_lookup (daemon->clients, arg_name) == NULL)
|
||||||
|
g_dbus_method_invocation_return_error (invocation,
|
||||||
|
G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER,
|
||||||
|
"Could not get owner of name '%s': no such name", arg_name);
|
||||||
|
else
|
||||||
|
_g_freedesktop_dbus_complete_get_name_owner (object, invocation, arg_name);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
name = name_lookup (daemon, arg_name);
|
name = name_lookup (daemon, arg_name);
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user