From: Matthias Clasen Date: Mon, 30 Dec 2019 20:24:51 +0000 (-0500) Subject: mountoperation: Handle D-Bus missing X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~476 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=67d1d5ec80a993757f4a1c3e045ec8ad41257df1;p=gtk4.git mountoperation: Handle D-Bus missing Still not great to make sync calls here, but at least we should handle failure without criticals. --- diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index b94d124818..ebcdba0f2b 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -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);