| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes https://github.com/hughsie/colord/issues/125
|
| |
|
| |
|
|
|
|
| |
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.
|
|
|
|
| |
It's not guaranteed to be /var.
|
|
|
|
|
|
| |
The daemon is not guaranteed to run as a user named 'colord', since the
default is -Ddaemon_user=root. Generate the file and interpolate
@daemon_user@ in the same way as is done for the .service file.
|
| |
|
| |
|
|
|
|
| |
This is useful for flathub.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Allows compilation when cross building, as Void Linux is doing so.
Other packages that also do it:
libgusb -> -DGUSB_COMPILATION
atk -> -DATK_COMPILATION
appstream-glib -> -DAS_COMPILATION
|
| |
|
|
|
|
| |
Fixes https://github.com/hughsie/colord/issues/83
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Elsewhere we look for spotread in $PATH, and the meson check is for spotread in
$PATH, so consistently use non-absolute paths for spawning spotread
|
|
|
|
|
| |
The sensor can be built fine without it installed, and for packagers it is
necessary to specify a manual dependency anyway.
|
|
|
|
|
|
|
|
|
|
| |
This is part of more broader commitment Red Hat along with IBM, Google, and
Facebook made in November 2017.
More on this can be found online:
https://www.redhat.com/en/blog/fostering-greater-open-source-development &
https://www.redhat.com/en/about/gplv3-enforcement-statement
|
|
|
|
|
| |
Since we now require meson 0.46, we can use this function
that was added in 0.44.
|
|
|
|
| |
Fixes: https://github.com/hughsie/colord/issues/69
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
File triggers FTW.
|