summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update link to colorhug-clientHEADmainPaul Wise2023-03-211-1/+1
| | | | | | | 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
* lib/icc: Always close profile when loading failsJonas Ã…dahl2023-03-031-0/+1
| | | | | | | | 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.
* lib: avoid destructing LCMS plugin twice with lcms 2.14Sam James2022-11-151-1/+0
| | | | | | | | | | | | | | 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>
* po: Add Georgian (#143)NorwayFun2022-10-312-0/+1434
|
* trivial: Fix a small memory leak when finding the argyll binariesRichard Hughes2022-04-131-11/+7
|
* trivial: Fix a small memory leak when opening the Huey deviceRichard Hughes2022-04-131-2/+3
|
* trivial: Fix a small memory leak on db open failureRichard Hughes2022-04-132-3/+2
|
* trivial: Remove some dead code spotted by CoverityRichard Hughes2022-04-131-4/+0
|
* Fix a double free spotted by CoverityRichard Hughes2022-04-131-12/+6
|
* huey: Fix potential crash when reading from broken hardwareRichard Hughes2022-04-131-3/+6
|
* trivial: Ignore some return values to please CoverityRichard Hughes2022-04-136-11/+11
|
* dtp94: Fix an error check when parsing the dataRichard Hughes2022-04-131-1/+1
|
* build: drop autotools lines from po/.gitignoreSam James2022-03-251-2/+0
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* build: drop intltool remnantsSam James2022-03-252-2/+0
| | | | | | Dependency was dropped in the port to Meson (158fba0bc37d4cdcbd98d30e97b434ad033732f4). Signed-off-by: Sam James <sam@gentoo.org>
* trivial: post release version bumpRichard Hughes2022-02-162-3/+3
|
* Release colord 1.4.51.4.6Richard Hughes2022-02-1623-848/+1545
|
* trivial: Disable some new warnings meson is turning on by default nowRichard Hughes2022-02-161-0/+3
|
* trivial: Ignore failures to embed the 'fur' localeRichard Hughes2022-02-161-2/+2
|
* Drop references to hughski.commasterPaul Wise2021-06-052-9/+1
| | | | | | | | | | | | 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
* Fix typo in device-removed signal documentationJeremy Cline2021-05-041-1/+1
| | | | It's just a little copy/paste error, but it made me do a double-take.
* build: Make introspection optional in mesonDavid Michael2021-05-013-0/+5
| | | | It defaults to enabled to preserve existing behavior.
* src/sensors: drop option for removed reverse engineering toolsMingcong Bai2021-04-044-45/+0
|
* Fix a small memory leak in sqlite3_exec()Zero0one12021-04-021-1/+1
| | | Fixes https://github.com/hughsie/colord/issues/110
* Document where to send patchesMisha Gusarov2021-01-231-0/+6
| | | | Signed-off-by: Misha Gusarov <dottedmag@dottedmag.net>
* udev: Add Spyder X entryMisha Gusarov2021-01-231-0/+3
| | | | Signed-off-by: Misha Gusarov <dottedmag@dottedmag.net>
* trivial: Fix the return value of huey_device_read_eeprom()Richard Hughes2021-01-141-1/+1
|
* trivial: Fix return values from g_return_val_if_fail()Richard Hughes2021-01-121-1/+1
|
* libcolord: Add missing copyright noticesAaron Plattner2020-11-234-0/+4
| | | | I forgot to add copyright notices for commits 9aba3df and 6d64e4c.
* build: Bump glib required version for g_assert_cmpfloat_with_epsilonChristopher James Halse Rogers2020-11-111-1/+1
|
* tests: Don't use exact floating point comparisons.Christopher James Halse Rogers2020-11-111-2/+2
| | | | | | | | 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>
* trivial: post release version bumpRichard Hughes2020-11-022-6/+4
|
* Release colord 1.4.51.4.5Richard Hughes2020-11-029-840/+767
|
* Fix segfault due to dereferencing NULL pointerSimon Munton2020-07-171-3/+2
| | | | Signed-off-by: Simon Munton <simon.j.munton@gmail.com>
* fix more annotation for data arraysElmar Hoffmann2020-06-156-47/+47
|
* fix cd_icc_load_data() annotation for the data arrayElmar Hoffmann2020-06-131-1/+1
|
* Refactor opening of mapping database and try again if failsRoss Burton2020-03-281-3/+54
| | | | | | | | | 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.
* Check for errors from more sqlite callsRoss Burton2020-03-281-3/+11
| | | | | | 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.
* libcolord: Add cd_icc_utils_get_adaptation_matrixAaron Plattner2020-03-232-0/+129
| | | | | Window systems such as gnome-shell can use this to calculate a color transform matrix (CTM) to plug into typical desktop display hardware.
* libcolord: Add cd_icc_create_default_fullAaron Plattner2020-03-232-5/+29
| | | | | | | 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.
* libcolord: Add cd_mat33_is_finiteAaron Plattner2020-03-233-10/+31
| | | | | | | | | 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.
* tests: Make the build reproductibleLaurent Bigonville2020-03-204-23/+16
| | | | Fixes: #106
* trivial: Downgrade more trivial warning to a debug statementMaryse472020-02-271-2/+2
| | | | 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
* trivial: Update the CI to Fedora 31Richard Hughes2019-12-091-1/+1
|
* Add support for datacolor SpyderXRichard Brown2019-12-033-0/+4
|
* tests: Fix cd-sensor-dummyChristopher James Halse Rogers2019-08-191-4/+6
| | | | | | `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.
* trivial: Downgrade a trivial warning to a debug statementRichard Hughes2019-08-131-4/+4
| | | | | | 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.
* trivial: Fix error checking for sd_pid_get_session and sd_session_get_seatJan Alexander Steffens (heftig)2019-04-281-2/+2
| | | | | | | These functions can return a positive integer on success. Fix the conditions to only regard negative return values as errors. Fixes commit 6ffe2f6aae4bdc8331cab1fd9379ed8aef759749.
* trivial: Fix some typos spotted using codespellRichard Hughes2019-04-0834-52/+52
|
* trivial: Update downstream spec fileRichard Hughes2019-03-221-3/+2
|
* data: fix owner & permissions on existing state filesWill Thompson2019-03-151-0/+1
| | | | | | | | | | | | | | | | 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.