GNOME Bugzilla – Bug 720386
gdbusproxy prefixes unstripped error
Last modified: 2018-05-24 16:09:53 UTC
When you construct a gdbus proxy for a service that is autostarted by that construction, but the server fails to start (e.g. by just calling exit()), the returned GError says: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/gnome-terminal/gnome-terminal-server exited with status 1 Note the presence of the GDBus.Error: prefix of the inner error. I think that prefix should be stripped; attached patch does so.
Created attachment 264136 [details] [review] gdbus: proxy: Strip remote error on activation failure
Created attachment 264138 [details] [review] gdbus: proxy: Strip remote error on activation failure
Where did the "GDBus.Error" come from?
Hmm? That's added by gdbus, at gio/gdbuserror.c:g_dbus_error_new_for_dbus_error().
Review of attachment 264138 [details] [review]: Sure.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/804.