[gvfs] gdaemonvfs: Don't warn when running against an older gvfs-daemon
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gdaemonvfs: Don't warn when running against an older gvfs-daemon
- Date: Tue, 28 Aug 2012 16:16:35 +0000 (UTC)
commit 351f67e6879b7effdacc9d463b50b7f59bf67723
Author: Colin Walters <walters verbum org>
Date: Tue Aug 28 11:59:55 2012 -0400
gdaemonvfs: Don't warn when running against an older gvfs-daemon
This happens in jhbuild.
https://bugzilla.gnome.org/show_bug.cgi?id=682885
client/gdaemonvfs.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index 228a73f..f0923c3 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -646,8 +646,12 @@ fill_mountable_info (GDaemonVfs *vfs)
NULL,
&error))
{
- g_printerr ("org.gtk.vfs.MountTracker.listMountableInfo call failed: %s (%s, %d)\n",
- error->message, g_quark_to_string (error->domain), error->code);
+ /* Don't warn if we're running a new gvfs plugin against an old gvfs-daemon,
+ * as happens in jhbuild.
+ */
+ if (!g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD))
+ g_printerr ("org.gtk.vfs.MountTracker.listMountableInfo call failed: %s (%s, %d)\n",
+ error->message, g_quark_to_string (error->domain), error->code);
g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]