| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
`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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Validate arguments:
- temp == NaN would fail the bounds checks and could result in
out-of-bounds reads.
- result == NULL is an obvious error.
Avoid calling cd_color_rgb_interpolate if the second point would be
outside the data array. This only happens for temp == 10000, which makes
the alpha 0, so one would think that the garbage read has no effect on
the result. However, if the garbage happens to contain NaNs they would
propagate to the output. Besides, asan and valgrind still complain.
|
|
|
|
|
|
| |
Following the style guidelines here: https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting
Also update the README with meson instructions for compiling on Linux.
|
|
|
|
| |
To point gettext to .its/.loc files.
|
| |
|
| |
|
|
|
|
| |
If we return with NULL, we have to set an error...
|
| |
|
|
|
|
|
| |
Damned Lies should be able to handle our po/meson.build now,
so this workaround is no longer needed.
|
|
|
|
|
|
|
| |
FreeBSD libudev-devd doesn't implement udev hwdb, and I cannot find any
way to do the conversion in the FreeBSD source tree. Therefore, the
fallback code removed in commit c9650c0bb7324c32d82fa6d7d898e236f10ea63b
is brought back to use the pnp.ids file.
|
|
|
|
|
|
| |
udev rules are only useful on Linux and udevdir is the only variable
provided by udev.pc. It is not meaningful to ask other operating systems
which reimplement udev API to provide a dummy udev.pc file.
|
|
|
|
|
|
| |
Defining _XOPEN_SOURCE to 500 limits the supported C standard version
to C89 on FreeBSD, which causes compilation error because colord
requires C99 features such as fpclassify and FP_ZERO.
|
| |
|
|
|
|
| |
The hardware has been discontinued and was designed for OEMs to repackage.
|
| |
|
|
|
|
|
|
|
|
|
| |
Since cd-create-profile is transforming existing data into an ICC profile it
makes sense for the creation timestamp of the ICC profile to be the modification
time of the source data.
It also respects the SOURCE_DATE_EPOCH environment variable for ease of
reproducible package builds.
|
|
|
|
|
|
|
| |
For the same input `cd-it8 create-cmf` and `cd-it8 create-sp`
will create the exact same output except for the creation time.
As the header is optional and prevents CMF and spectra to be built
reproducibly, disable it by default.
|
|
|
|
|
| |
This allows clients to override the creation time of an ICC profile,
particularly useful for code that tries to build deterministically.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prevent certain attacks, and save one redirect by using the more secure
HTTPS URLs.
```
$ curl -I http://www.freedesktop.org/
HTTP/1.1 302 Found
Date: Mon, 18 Dec 2017 09:31:43 GMT
Server: Apache/2.4.10 (Debian)
Location: https://www.freedesktop.org/
Content-Type: text/html; charset=iso-8859-1
```
Run the command below to update all freedeskto.org URLs.
```
$ git grep -l 'http://www.freedesktop.org' | xargs sed -i 's,http://www.freedesktop.org,https://www.freedesktop.org,g'
```
Fixes: https://github.com/hughsie/colord/issues/63
|