mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Check error of g_dbus_proxy_new_sync call
Otherwise errors pile up and we crash later on.
This commit is contained in:
parent
3f0fbae7e2
commit
18c7138237
1 changed files with 6 additions and 0 deletions
|
|
@ -132,6 +132,12 @@ shell_dbus_init (gboolean replace)
|
|||
NULL, /* cancellable */
|
||||
&error);
|
||||
|
||||
if (!bus)
|
||||
{
|
||||
g_printerr ("Failed to get a session bus proxy: %s", error->message);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
request_name_flags = G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT;
|
||||
if (replace)
|
||||
request_name_flags |= DBUS_NAME_FLAG_REPLACE_EXISTING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue