[mutter] tests/dbusmock/colord: Fix system profile D-Bus path names



commit f94a5c7ff9779d31d0338e5d0c02761d5a7cde66
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Sep 13 18:16:10 2022 +0200

    tests/dbusmock/colord: Fix system profile D-Bus path names
    
    They had the username and userid in them, which they shouldn't.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2622>

 src/tests/dbusmock-templates/colord.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/tests/dbusmock-templates/colord.py b/src/tests/dbusmock-templates/colord.py
index d81f337803..3e9286a86d 100644
--- a/src/tests/dbusmock-templates/colord.py
+++ b/src/tests/dbusmock-templates/colord.py
@@ -147,8 +147,7 @@ def AddSystemProfile(self, profile_id, file_path):
     uid = os.getuid()
     username = get_username(uid)
     profile_path = PATH_PREFIX + '/profiles/' + \
-        escape_unit_name(profile_id) + \
-        '_' + username + '_' + str(uid)
+        escape_unit_name(profile_id)
     self.profiles[profile_id] = profile_path
     self.AddObject(profile_path,
                    PROFILE_IFACE,


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