[colord] colord integration code examples to query display profile
hughsient at gmail.com
Mon Apr 30 08:19:30 PDT 2012
On 29 April 2012 18:31, Pascal de Bruijn <pmjdebruijn at pcode.nl> wrote:
> So I'm guessing the following is preferred whenever "Try to use system
> profile" is enabled (in any application):
> 1. Ask colord which profile to apply
> 2. use _ICC_PROFILE
> 3. fall back to srgb if all else fails.
Yes, that's probably sane.
> Is there any example code, to get a display ICC profile for whatever
> display an application is currently placed on?
Sure, there's python and C here:
> This is probably the single most common use-case of querying colord,
> it would probably help adoption if there were near-drop-in example
Sure. Do you want me to do some example code that can work out the
correct device from the X window ID? gnome-color-manager used to
provide that, but it got lost when we converted everything into
More information about the colord