Replace a '\' in the display name with a '_'
On Windows, display names can contain backslashes which results in an error in the socket implementation.
This commit is contained in:
parent
277d957816
commit
6658afb885
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue