[Xfce4-commits] <midori:master> Don't encode config hash in app name for socket

Christian Dywan noreply at xfce.org
Tue Jan 10 01:44:01 CET 2012


Updating branch refs/heads/master
         to 556546320b22179625d876b33a07e516df857426 (commit)
       from e61743db9c147049f86f0a4acdf60d8bd729f9b4 (commit)

commit 556546320b22179625d876b33a07e516df857426
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jan 10 01:42:37 2012 +0100

    Don't encode config hash in app name for socket

 midori/midori-app.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/midori/midori-app.c b/midori/midori-app.c
index 0666e6f..99b1001 100644
--- a/midori/midori-app.c
+++ b/midori/midori-app.c
@@ -722,12 +722,16 @@ midori_app_create_instance (MidoriApp* app)
 
     if (!app->name)
     {
+        #if HAVE_UNIQUE
         const gchar* config = sokoke_set_config_dir (NULL);
         gchar* name_hash;
         name_hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, config, -1);
         app->name = g_strconcat ("midori", "_", name_hash, NULL);
         g_free (name_hash);
         g_object_notify (G_OBJECT (app), "name");
+        #else
+        app->name = g_strdup (PACKAGE_NAME);
+        #endif
     }
 
     if (!(display = gdk_display_get_default ()))


More information about the Xfce4-commits mailing list