[gnome-settings-daemon] color: Use a username suffix on the profile ID



commit e2e05f1966c67c54cc8b191698776fc11f107227
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 9 16:44:52 2011 +0100

    color: Use a username suffix on the profile ID
    
    This allows fast user switching to work correctly when both sessions want to
    use the same profile and the profile is not set system-wide.
    
    This properly fixes https://bugzilla.redhat.com/show_bug.cgi?id=736846

 plugins/color/gsd-color-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 0e710fc..e6ba132 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1822,7 +1822,9 @@ gcm_session_profile_store_added_cb (GcmProfileStore *profile_store,
                 g_error_free (error);
                 goto out;
         }
-        profile_id = g_strdup_printf ("icc-%s", checksum);
+        profile_id = g_strdup_printf ("icc-%s-%s",
+                                      checksum,
+                                      g_get_user_name ());
         profile_props = g_hash_table_new_full (g_str_hash, g_str_equal,
                                                NULL, NULL);
         g_hash_table_insert (profile_props,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]