mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
mountoperation: Handle D-Bus missing
Still not great to make sync calls here, but at least we should handle failure without criticals.
This commit is contained in:
parent
49c6e99970
commit
67d1d5ec80
@ -202,6 +202,9 @@ gtk_mount_operation_init (GtkMountOperation *operation)
|
||||
"org.gtk.MountOperationHandler",
|
||||
"/org/gtk/MountOperationHandler",
|
||||
NULL, NULL);
|
||||
if (!operation->priv->handler)
|
||||
return;
|
||||
|
||||
name_owner = g_dbus_proxy_get_name_owner (G_DBUS_PROXY (operation->priv->handler));
|
||||
if (!name_owner)
|
||||
g_clear_object (&operation->priv->handler);
|
||||
|
Loading…
Reference in New Issue
Block a user