--- gio/gdbusaddress.c.orig 2017-02-13 09:53:27.000000000 -0600
+++ gio/gdbusaddress.c 2017-03-29 21:05:12.000000000 -0500
/* ---------------------------------------------------------------------------------------------------- */
+ * MacPorts specific D-Bus implementation
+ * When building under MacPorts on darwin
+ * plaforms (including Mac OS X), the
+ * symbols G_OS_UNIX and __APPLE__ are
+ * The D-Bus session daemon is controlled
+ * using the Apple launchd facility.
+ * For launchd command details see
+ * http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages
+#if defined (G_OS_UNIX) && defined (__APPLE__)
+get_session_address_macports_specific (GError **error)
+ gchar *launchctl_stdout;
+ gchar *launchctl_stderr;
+ launchctl_stdout = NULL;
+ launchctl_stderr = NULL;
+ command_line = g_strdup ("launchctl getenv DBUS_LAUNCHD_SESSION_BUS_SOCKET");
+ if (G_UNLIKELY (_g_dbus_debug_address ()))
+ _g_dbus_debug_print_lock ();
+ g_print ("GDBus-debug:Address: launchctl command line: `%s'\n", command_line);
+ _g_dbus_debug_print_unlock ();
+ if (g_spawn_command_line_sync (command_line,
+ if (g_spawn_check_exit_status (exit_status, error))
+ if (launchctl_stdout != NULL)
+ if (G_UNLIKELY (_g_dbus_debug_address ()))
+ _g_dbus_debug_print_lock ();