It is pointless to connect to a message bus when GIMP has been compiled without D-Bus support. Although it's harmless, the resulting error message is confusing and should be avoided.
So only compile gimp_unique_dbus_open() in its entirety if HAVE_DBUS_GLIB. --- app/unique.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/unique.c b/app/unique.c index 8e0f477..649f3ab 100644 --- a/app/unique.c +++ b/app/unique.c @@ -71,7 +71,7 @@ gimp_unique_dbus_open (const gchar **filenames, gboolean as_new) { #ifndef GIMP_CONSOLE_COMPILATION - +#if HAVE_DBUS_GLIB GDBusConnection *connection; GError *error = NULL; @@ -158,6 +158,7 @@ gimp_unique_dbus_open (const gchar **filenames, g_clear_error (&error); } #endif +#endif return FALSE; } -- 2.9.2 _______________________________________________ gimp-developer-list mailing list List address: gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list