[Github-comments] [geany/geany] Avoid gdk_display_get_name() on OS X (#1399)

Jiří Techet notifications at xxxxx
Mon Feb 20 16:11:28 UTC 2017


techee commented on this pull request.



> @@ -284,8 +284,15 @@ gint socket_init(gint argc, gchar **argv)
 	GdkDisplay *display = gdk_display_get_default();
 	gchar *p;
 
+	/* On OS X with quartz backend gdk_display_get_name() returns hostname
+	 * using [NSHost currentHost] (it could return more or less whatever string
+	 * as display name is a X11 specific thing). This call can lead to network
+	 * query and block for several seconds so better skip it. */
+#ifndef GDK_WINDOWING_QUARTZ

Well, I didn't do this in Scintilla because of problems

https://sourceforge.net/p/scintilla/bugs/1696/

neither in Geany

https://github.com/geany/geany/blob/master/src/editor.c#L4927

before already and I'm not sure if it makes much sense for OS X.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1399#discussion_r102050140
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170220/5116ce40/attachment.html>


More information about the Github-comments mailing list