| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The domain has been abandoned but the code is archived on GitHub.
See-also: https://github.com/hughsie/colord/issues/134
See-also: https://github.com/hughsie/colord/pull/135
|
|
|
|
|
|
|
|
| |
cd_icc_load() always takes ownership of the passed profile, but will
leak it if the initial condition fails and the funtion returns an error.
Only if the actual profile loading fails, will the passed profile
eventually not be leaked. Fix this by closing it immediately in the
first case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
lcms 2.14 contains a change to avoid a memory leak, but that change
assumes correct API usage. It's not necessary to both cmsUnregisterPluginsTHR()
and then cmsDeleteContext() -- we can just straight up delete the LCMS
context instead (cmsDeleteContext()).
So, follow upstream's suggestion & do that. This fixes memory corruption
when building colord on x86, for example.
Bug: https://github.com/mm2/Little-CMS/issues/344
Fixes: https://github.com/hughsie/colord/issues/145
Signed-off-by: Sam James <sam@gentoo.org>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
| |
Dependency was dropped in the port to Meson (158fba0bc37d4cdcbd98d30e97b434ad033732f4).
Signed-off-by: Sam James <sam@gentoo.org>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The domain has been abandoned and taken over by spammers.
Color profile upload was never implemented in colord.
The ColorHug family of products is no longer produced:
https://blogs.gnome.org/hughsie/2018/02/01/no-new-batches-of-colorhug2/
Fixes: https://github.com/hughsie/colord/issues/134
|
|
|
|
| |
It's just a little copy/paste error, but it made me do a double-take.
|
|
|
|
| |
It defaults to enabled to preserve existing behavior.
|
| |
|
|
|
| |
Fixes https://github.com/hughsie/colord/issues/110
|
|
|
|
| |
Signed-off-by: Misha Gusarov <dottedmag@dottedmag.net>
|
|
|
|
| |
Signed-off-by: Misha Gusarov <dottedmag@dottedmag.net>
|
| |
|
| |
|
|
|
|
| |
I forgot to add copyright notices for commits 9aba3df and 6d64e4c.
|
| |
|
|
|
|
|
|
|
|
| |
The tests asserting that cd_icc_get_version are exactly equal to 3.4 or
2.09 fail on (at least) i386, armel, and s390x because floating point is
hateful.
Signed-off-by: Christopher James Halse Rogers <raof@ubuntu.com>
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Simon Munton <simon.j.munton@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Extract the actual opening of the mapping database to a static function,
once it is open do a quick verification of the database, and if that
fails (corrupted database, typically) then try to delete the file and
try again.
Closes #111.
|
|
|
|
|
|
| |
Once the mapping database is opened we call 'PRAGMA synchronous', check
the error code so if the database is corrupted then we can bail sooner
rather than later.
|
|
|
|
|
| |
Window systems such as gnome-shell can use this to calculate a color transform
matrix (CTM) to plug into typical desktop display hardware.
|
|
|
|
|
|
|
| |
The existing cd_icc_create_default creates a CdIcc with none of the load flags
set. A future change to gnome-settings-daemon is going to want to load an sRGB
profile with CD_ICC_LOAD_FLAGS_PRIMARIES in order to use it to construct a color
transformation matrix to plug into the window system.
|
|
|
|
|
|
|
|
|
| |
Move the logic to check whether any entries in a matrix are NaN or infinite from
cd_it8_utils_calculate_ccmx into a helper function in cd-math.c.
In addition, fix a bug in this code: if any entries of the matrix are exactly
zero, then fpclassify will return FP_ZERO instead of FP_NORMAL. Don't treat this
as a failure: only FP_NAN and FP_INFINITE are errors.
|
|
|
|
| |
Fixes: #106
|
|
|
|
| |
This is a follow up from https://github.com/hughsie/colord/commit/513bfa4783d0a630c226ee40638ab346c0d1c229 with a goal to avoid unnecessary spam in system logs.
Fixes https://github.com/hughsie/colord/issues/48
|
| |
|
| |
|
|
|
|
|
|
| |
`g_autoptr(GTask) task` will be unreffed when it leaves scope. If we want
it to be available in 2 seconds' time in the idle callback we'll need to
explicitly transfer ownership.
|
|
|
|
|
|
| |
This avoids spamming logs if system seats are set up incorrectly. If the user
is using virtual desktops it's highly unlikely they want the session devices
managed by colord.
|
|
|
|
|
|
|
| |
These functions can return a positive integer on success. Fix the
conditions to only regard negative return values as errors.
Fixes commit 6ffe2f6aae4bdc8331cab1fd9379ed8aef759749.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If colord was previously configured to run as root, and subsequently
made to run as a different user, it will be unable to write to its state
files:
colord[668]: CdDevice: failed to save mapping to database: SQL error: attempt to write a readonly database
'd' creates a directory if missing, and fixes its permissions if it
already exists, but it is not recursive. 'Z' recursively adjusts the
permission of the given directory and its children, but only if it
already exists. Together, these rules ensure that
@localstatedir@/lib/colord and @localstatedir@/lib/colord/icc both
exist, and that @localstatedir@/lib/colord and all its descendents are
owned by the correct user.
|