[colord] Device key with username?

Richard Hughes hughsient at gmail.com
Wed Jun 20 06:36:03 PDT 2012


On 20 June 2012 13:51, Florian Höch <lists+colord at hoech.org> wrote:
> /org/freedesktop/ColorManager/devices/xrandr_Lenovo_Group_Limited_<username>
> I'm interested what the preconditions are for this, i.e. if the EDID is
> incomplete (e.g. no EDID model or serial), the username is appended?

Short version: the username is appended by the daemon if the device is
owned by a specific user. The object path is more of an implementation
detail of colord, and the device-id is the thing you can rely on. See
https://gitorious.org/colord/master/blobs/master/doc/device-and-profile-naming-spec.txt
for more details.

Long version, different concurrent sessions with different users
logged in can actually create the duplicate devices referring to the
same hardware, although internally they are scoped per-user. The
queries basically DTRT depending on what user did the query. This is
an edge case, but it's tripped up a few people already.

Richard.


More information about the colord mailing list