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>
This commit is contained in:
Jonas Ådahl 2022-09-13 18:16:10 +02:00 committed by Marge Bot
parent a2000a1132
commit f94a5c7ff9

View File

@ -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,