From: Peter de Ridder Date: Thu, 19 Nov 2009 21:55:21 +0000 (+0100) Subject: Replace a '\' in the display name with a '_' X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6658afb8858bdd92c1f19dc37edd05150079fe7b;p=midori Replace a '\' in the display name with a '_' On Windows, display names can contain backslashes which results in an error in the socket implementation. --- diff --git a/midori/midori-app.c b/midori/midori-app.c index 232bb567..b9e49716 100644 --- a/midori/midori-app.c +++ b/midori/midori-app.c @@ -661,7 +661,8 @@ midori_app_create_instance (MidoriApp* app, display_name = g_strdup (gdk_display_get_name (display)); n = strlen (display_name); for (i = 0; i < n; i++) - if (display_name[i] == ':' || display_name[i] == '.') + if (display_name[i] == ':' || display_name[i] == '.' + || display_name[i] == '\\') display_name[i] = '_'; instance_name = g_strdup_printf ("de.twotoasts.%s_%s", name, display_name);