Don't encode config hash in app name for socket
This commit is contained in:
parent
e61743db9c
commit
556546320b
1 changed files with 4 additions and 0 deletions
|
@ -722,12 +722,16 @@ midori_app_create_instance (MidoriApp* app)
|
||||||
|
|
||||||
if (!app->name)
|
if (!app->name)
|
||||||
{
|
{
|
||||||
|
#if HAVE_UNIQUE
|
||||||
const gchar* config = sokoke_set_config_dir (NULL);
|
const gchar* config = sokoke_set_config_dir (NULL);
|
||||||
gchar* name_hash;
|
gchar* name_hash;
|
||||||
name_hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, config, -1);
|
name_hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, config, -1);
|
||||||
app->name = g_strconcat ("midori", "_", name_hash, NULL);
|
app->name = g_strconcat ("midori", "_", name_hash, NULL);
|
||||||
g_free (name_hash);
|
g_free (name_hash);
|
||||||
g_object_notify (G_OBJECT (app), "name");
|
g_object_notify (G_OBJECT (app), "name");
|
||||||
|
#else
|
||||||
|
app->name = g_strdup (PACKAGE_NAME);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(display = gdk_display_get_default ()))
|
if (!(display = gdk_display_get_default ()))
|
||||||
|
|
Loading…
Reference in a new issue